efl/gesture: correctly reset zoom gesture recognizer data on >2 finger touch

canceling without a proper reset breaks the recognizer for successive events

Reviewed-by: woochan lee <wc0917.lee@samsung.com>
Differential Revision: https://phab.enlightenment.org/D11167
This commit is contained in:
Mike Blumenkrantz 2020-01-23 15:18:09 -05:00 committed by Marcel Hollerbach
parent f5e7625af8
commit 0bb36d23e2
1 changed files with 1 additions and 0 deletions

View File

@ -175,6 +175,7 @@ _efl_canvas_gesture_recognizer_zoom_efl_canvas_gesture_recognizer_recognize(Eo *
{
if (td->touch_down > 2)
{
memset(pd, 0, sizeof(Efl_Canvas_Gesture_Recognizer_Zoom_Data));
return EFL_GESTURE_RECOGNIZER_RESULT_CANCEL;
}
if (td->touch_down == 1)