Browse Source

Fix double tap & drag on Android

(cherry picked from commit 0c94750642978df5b5a100692c7b8be8522fd668)
Omar Shehata 2 years ago
parent
commit
42d2187f38

+ 3 - 0
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
 	}