efl/gesture: fix zoom to ignore single press events and not crash

zoom requires two fingers for a pinch, so skip the first press

Reviewed-by: woochan lee <wc0917.lee@samsung.com>
Differential Revision: https://phab.enlightenment.org/D11088
This commit is contained in:
Mike Blumenkrantz 2020-01-13 15:09:17 -05:00 committed by Marcel Hollerbach
parent 89b35b3f79
commit ce3d569cfd
1 changed files with 4 additions and 0 deletions

View File

@ -177,6 +177,10 @@ _efl_canvas_gesture_recognizer_zoom_efl_canvas_gesture_recognizer_recognize(Eo *
{
return EFL_GESTURE_RECOGNIZER_RESULT_CANCEL;
}
if (td->touch_down == 1)
{
return EFL_GESTURE_RECOGNIZER_RESULT_MAYBE;
}
if (!pd->zoom_st.cur.timestamp) /* Now scan touched-devices list
* and find other finger */