summaryrefslogtreecommitdiff
path: root/src/lib/evas
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2020-01-27 13:38:45 -0500
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-02-05 10:10:34 +0100
commitd62e3f97ada3a28592d125bea637219486f05bea (patch)
tree68febdb1c431196921922d4a517e6a8530111993 /src/lib/evas
parentc8ff8b1706774e1111170d178467d34d96d04029 (diff)
efl/gesture: ignore successive press events in zoom recognizer when canceled
cancel is used to indicate that a gesture which has begun to trigger has been canceled, so if we have already canceled then we should not re-cancel here Reviewed-by: woochan lee <wc0917.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D11207
Diffstat (limited to 'src/lib/evas')
-rw-r--r--src/lib/evas/gesture/efl_canvas_gesture_recognizer_zoom.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/evas/gesture/efl_canvas_gesture_recognizer_zoom.c b/src/lib/evas/gesture/efl_canvas_gesture_recognizer_zoom.c
index 7cb06315ab..4eef014ed0 100644
--- a/src/lib/evas/gesture/efl_canvas_gesture_recognizer_zoom.c
+++ b/src/lib/evas/gesture/efl_canvas_gesture_recognizer_zoom.c
@@ -191,6 +191,8 @@ _efl_canvas_gesture_recognizer_zoom_efl_canvas_gesture_recognizer_recognize(Eo *
191 if (td->touch_down > 2) 191 if (td->touch_down > 2)
192 { 192 {
193 _reset_recognizer(pd); 193 _reset_recognizer(pd);
194 if (efl_gesture_state_get(gesture) == EFL_GESTURE_STATE_CANCELED)
195 return EFL_GESTURE_RECOGNIZER_RESULT_IGNORE;
194 return EFL_GESTURE_RECOGNIZER_RESULT_CANCEL; 196 return EFL_GESTURE_RECOGNIZER_RESULT_CANCEL;
195 } 197 }
196 if (td->touch_down == 1) 198 if (td->touch_down == 1)