diff options
author | Omar Shehata <omar.sameh.shehata@gmail.com> | 2023-05-06 16:35:19 -0400 |
---|---|---|
committer | RĂ©mi Verschelde <rverschelde@gmail.com> | 2023-05-12 12:14:14 +0200 |
commit | bab96e71d210c0ba9acf9660fb2220be606cad21 (patch) | |
tree | a94d466b472320536ad219ffab2b8880ffe8d3e4 | |
parent | 07af84689fe67251069a22845c854f7ae62f66af (diff) |
Fix double tap & drag on Android
(cherry picked from commit 0c94750642978df5b5a100692c7b8be8522fd668)
-rw-r--r-- | platform/android/java/lib/src/org/godotengine/godot/input/GodotGestureHandler.kt | 3 |
1 files changed, 3 insertions, 0 deletions
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 } |