efl/gesture: unset timer pointers for tap recognizers

avoid having stale timer pointers around once timers have triggered

Reviewed-by: woochan lee <wc0917.lee@samsung.com>
Differential Revision: https://phab.enlightenment.org/D11081
This commit is contained in:
Mike Blumenkrantz 2020-01-09 09:59:45 -05:00 committed by Marcel Hollerbach
parent 60b34bc61c
commit eb0dd2262d
2 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,7 @@ _long_tap_timeout_cb(void *data)
/* FIXME: Needs to propagate this event back to evas! */
pd->is_timeout = EINA_TRUE;
pd->timeout = NULL;
efl_gesture_state_set(pd->gesture, EFL_GESTURE_STATE_UPDATED);
efl_event_callback_call(pd->target, EFL_EVENT_GESTURE_LONG_TAP, pd->gesture);

View File

@ -18,6 +18,7 @@ static Eina_Bool
_tap_timeout_cb(void *data)
{
Efl_Canvas_Gesture_Recognizer_Tap_Data *pd = data;
pd->timeout = NULL;
efl_gesture_state_set(pd->gesture, EFL_GESTURE_STATE_CANCELED);
efl_event_callback_call(pd->target, EFL_EVENT_GESTURE_TAP, pd->gesture);