efl/gesture: conditionally ignore multi-touch unpress events in zoom recognizer
authorMike Blumenkrantz <zmike@samsung.com>
Mon, 27 Jan 2020 18:40:02 +0000 (13:40 -0500)
committerJongmin Lee <jm105.lee@samsung.com>
Tue, 11 Feb 2020 21:58:35 +0000 (06:58 +0900)
if we have not begun to process a zoom gesture by this point, then we should
not be emitting a cancel result

Reviewed-by: woochan lee <wc0917.lee@samsung.com>
Differential Revision: https://phab.enlightenment.org/D11208

src/lib/evas/gesture/efl_canvas_gesture_recognizer_zoom.c

index 4eef014..2857dd3 100644 (file)
@@ -261,7 +261,8 @@ _efl_canvas_gesture_recognizer_zoom_efl_canvas_gesture_recognizer_recognize(Eo *
 
       case EFL_GESTURE_TOUCH_STATE_END:
       {
-         if (td->touch_down == 0)
+         /* no gesture was started, so no gesture should be detected */
+         if ((td->touch_down == 0) || (!pd->zoom_st.cur.timestamp))
            {
               rd->continues = EINA_FALSE;