termiointernals: no timer in tests

This commit is contained in:
Boris Faure 2020-05-03 22:05:51 +02:00
parent 38e4935427
commit 144db18649
Signed by: borisfaure
GPG Key ID: 35C0410516166BE8
1 changed files with 5 additions and 7 deletions

View File

@ -2091,17 +2091,15 @@ termio_internal_mouse_move(Termio *sd,
}
if (scroll == EINA_TRUE)
{
#if defined(ENABLE_TESTS) || defined(ENABLE_TEST_UI)
_mouse_selection_scroll(sd);
#else
if (!sd->mouse_selection_scroll_timer)
{
sd->mouse_selection_scroll_timer
= ecore_timer_add(
#if defined(ENABLE_TESTS) || defined(ENABLE_TEST_UI)
0.01
#else
0.04
#endif
, _mouse_selection_scroll, sd);
= ecore_timer_add(0.04 , _mouse_selection_scroll, sd);
}
#endif
return;
}
else if (sd->mouse_selection_scroll_timer)