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:
Mike Blumenkrantz 2020-01-27 13:37:25 -05:00 committed by Marcel Hollerbach
parent 3612467c4f
commit c8ff8b1706
1 changed files with 2 additions and 3 deletions

View File

@ -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);