From 42d2187f38363c75922626c75affdd63a9fa2441 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 (cherry picked from commit 0c94750642978df5b5a100692c7b8be8522fd668) --- .../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 852195feb99..eea8eaf01bb 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 }