forked from enlightenment/efl
efl/gesture: ignore multi-touch end events in tap gesture recognizer
we only care about the last touch unpress event, so we should be ignoring every other event instead of canceling, as we are also ignoring the multi-touch press events Reviewed-by: woochan lee <wc0917.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D11206
This commit is contained in:
parent
3612467c4f
commit
c8ff8b1706
|
@ -79,9 +79,8 @@ new_tap:
|
|||
ecore_timer_del(pd->timeout);
|
||||
pd->timeout = NULL;
|
||||
}
|
||||
|
||||
if (efl_gesture_state_get(gesture) != EFL_GESTURE_STATE_NONE &&
|
||||
!efl_gesture_touch_multi_touch_get(event))
|
||||
if (efl_gesture_touch_multi_touch_get(event)) return EFL_GESTURE_RECOGNIZER_RESULT_IGNORE;
|
||||
if (efl_gesture_state_get(gesture) != EFL_GESTURE_STATE_NONE)
|
||||
{
|
||||
dist = efl_gesture_touch_distance(event, 0);
|
||||
length = fabs(dist.x) + fabs(dist.y);
|
||||
|
|
Loading…
Reference in New Issue