termiointernals: speed up selection scroll in tests + also in real life

This commit is contained in:
Boris Faure 2020-05-03 15:55:21 +02:00
parent 3be01d8b8b
commit f679d28809
Signed by: borisfaure
GPG Key ID: 35C0410516166BE8
1 changed files with 7 additions and 1 deletions

View File

@ -2094,7 +2094,13 @@ termio_internal_mouse_move(Termio *sd,
if (!sd->mouse_selection_scroll_timer)
{
sd->mouse_selection_scroll_timer
= ecore_timer_add(0.05, _mouse_selection_scroll, sd);
= ecore_timer_add(
#if defined(ENABLE_TESTS) || defined(ENABLE_TEST_UI)
0.01
#else
0.04
#endif
, _mouse_selection_scroll, sd);
}
return;
}