-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove broken scroll gesture on Android #62289
Conversation
Can you provide more context? Do you know what in the implementation caused the breakage?
Are scroll gestures still properly handled after the removal of this logic? |
The only data extracted from the godot/platform/android/java/lib/src/org/godotengine/godot/input/GodotGestureHandler.java Lines 83 to 89 in 21b51fd
Therefore, only the amount moved since the last MotionEvent is being used.
Furthermore, these movement values are then used as position values, from which a new movement values is calculated: godot/platform/android/android_input_handler.cpp Lines 385 to 393 in 21b51fd
The result is an Since the position is always around
Yes, the functional scrolling that uses the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for providing additional context and catching that implementation error!
Detecting an Android scroll gesture and using it to create a
InputEventPanGesture
was added as part of #33630, which aimed to address #8151, i.e. it had nothing to do with scrolling. Unfortunately, the implementation of the creation of theInputEventPanGesture
was deeply flawed and broke everything that used theInputEventPanGesture
on Android; most notablyScrollContainer
s, but alsoGraphEdit
and possibly others.This PR removes the flawed implementation of
InputEventPanGesture
on Android.Fixes #36312
Fixes #45402
Fixes #53619
Fixes #60600
Fixes #61816