From d6bc7b887721de660917125eddd53372be1bf3f8 Mon Sep 17 00:00:00 2001 From: Ray Date: Wed, 16 Mar 2016 17:51:21 +0100 Subject: [PATCH] Reset pointCount for gestures --- src/gestures.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gestures.c b/src/gestures.c index 583b77cd..b0a80084 100644 --- a/src/gestures.c +++ b/src/gestures.c @@ -179,6 +179,7 @@ void ProcessGestureEvent(GestureEvent event) } touchDownDragPosition = (Vector2){ 0.0f, 0.0f }; + pointCount = 0; } else if (event.touchAction == TOUCH_MOVE) { @@ -257,6 +258,7 @@ void ProcessGestureEvent(GestureEvent event) pinchDistance = 0.0f; pinchAngle = 0.0f; pinchVector = (Vector2){ 0.0f, 0.0f }; + pointCount = 0; currentGesture = GESTURE_NONE; }