summaryrefslogtreecommitdiff
path: root/src/lib/evas
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2020-01-27 13:37:25 -0500
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-02-05 10:10:31 +0100
commitc8ff8b1706774e1111170d178467d34d96d04029 (patch)
treed43e7858545eb2dd908bb7c072a3703bbe304a3a /src/lib/evas
parent3612467c4fda7008eaa9c1b6a9d13983f5e75fc8 (diff)
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
Diffstat (limited to 'src/lib/evas')
-rw-r--r--src/lib/evas/gesture/efl_canvas_gesture_recognizer_tap.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/evas/gesture/efl_canvas_gesture_recognizer_tap.c b/src/lib/evas/gesture/efl_canvas_gesture_recognizer_tap.c
index c05894592a..e63a9a5c02 100644
--- a/src/lib/evas/gesture/efl_canvas_gesture_recognizer_tap.c
+++ b/src/lib/evas/gesture/efl_canvas_gesture_recognizer_tap.c
@@ -79,9 +79,8 @@ new_tap:
79 ecore_timer_del(pd->timeout); 79 ecore_timer_del(pd->timeout);
80 pd->timeout = NULL; 80 pd->timeout = NULL;
81 } 81 }
82 82 if (efl_gesture_touch_multi_touch_get(event)) return EFL_GESTURE_RECOGNIZER_RESULT_IGNORE;
83 if (efl_gesture_state_get(gesture) != EFL_GESTURE_STATE_NONE && 83 if (efl_gesture_state_get(gesture) != EFL_GESTURE_STATE_NONE)
84 !efl_gesture_touch_multi_touch_get(event))
85 { 84 {
86 dist = efl_gesture_touch_distance(event, 0); 85 dist = efl_gesture_touch_distance(event, 0);
87 length = fabs(dist.x) + fabs(dist.y); 86 length = fabs(dist.x) + fabs(dist.y);