efl/gesture: unset timer pointers for tap recognizers

avoid having stale timer pointers around once timers have triggered

Differential Revision: https://phab.enlightenment.org/D11081
This commit is contained in:
Mike Blumenkrantz 2020-01-09 09:59:45 -05:00
parent 19156e9a5c
commit 35ca4e0988
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);