forked from enlightenment/efl
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:
parent
19156e9a5c
commit
35ca4e0988
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue