From 0c94750642978df5b5a100692c7b8be8522fd668 Mon Sep 17 00:00:00 2001 From: Omar Shehata Date: Sat, 6 May 2023 16:35:19 -0400 Subject: [PATCH] Fix double tap & drag on Android --- .../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 af1f38f89cf..7dc5fb6f831 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 }