Elm Glayer: Fixed call of long tap reset in case reset occurs before 1st input event

Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 64128
This commit is contained in:
Aharon Hillel 2011-10-17 08:12:49 +00:00 committed by Tom Hacohen
parent 14b0c8d207
commit ba51b99efb
1 changed files with 3 additions and 2 deletions

View File

@ -975,8 +975,9 @@ _event_history_clear(Evas_Object *obj)
{ /* We do not clear a long-tap gesture if fingers still on surface */
/* and gesture timer still pending to test gesture state */
Long_Tap_Type *st = wd->gesture[ELM_GESTURE_N_LONG_TAPS]->data;
if((!eina_list_count(st->touched)) || (!st->timeout))
_n_long_tap_test_reset(wd->gesture[ELM_GESTURE_N_LONG_TAPS]);
if (st) /* st not allocated if clear occurs before 1st input */
if((!eina_list_count(st->touched)) || (!st->timeout))
_n_long_tap_test_reset(wd->gesture[ELM_GESTURE_N_LONG_TAPS]);
}
if (wd->dbl_timeout)