From bab96e71d210c0ba9acf9660fb2220be606cad21 Mon Sep 17 00:00:00 2001 From: Omar Shehata Date: Sat, 6 May 2023 16:35:19 -0400 Subject: Fix double tap & drag on Android (cherry picked from commit 0c94750642978df5b5a100692c7b8be8522fd668) --- .../java/lib/src/org/godotengine/godot/input/GodotGestureHandler.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/android/java/lib/src/org/godotengine/godot/input/GodotGestureHandler.kt b/platform/android/java/lib/src/org/godotengine/godot/input/GodotGestureHandler.kt index af1f38f89c..7dc5fb6f83 100644 --- a/platform/android/java/lib/src/org/godotengine/godot/input/GodotGestureHandler.kt +++ b/platform/android/java/lib/src/org/godotengine/godot/input/GodotGestureHandler.kt @@ -197,7 +197,10 @@ internal class GodotGestureHandler : SimpleOnGestureListener(), OnScaleGestureLi if (event.actionMasked == MotionEvent.ACTION_UP) { nextDownIsDoubleTap = false GodotInputHandler.handleMotionEvent(event) + } else if (event.actionMasked == MotionEvent.ACTION_MOVE && panningAndScalingEnabled == false) { + GodotInputHandler.handleMotionEvent(event) } + return true } -- cgit v1.2.3