Browse Source

Reset pointCount for gestures

pull/107/head
Ray 8 years ago
parent
commit
d6bc7b8877
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/gestures.c

+ 2
- 0
src/gestures.c View File

@ -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;
}

Loading…
Cancel
Save