Skip to content
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

PanGestureRecognizer jittering fix #85

Merged
merged 1 commit into from
Aug 10, 2024

Conversation

XITRIX
Copy link
Collaborator

@XITRIX XITRIX commented Aug 10, 2024

Because pan recognizer needs some threshold to consider itself as "Recognised", after it change the status to "START" view scrolled by this gesture will jump on this threshold value, because startPoint was set when gesture was in "UNSURE" state and delta will not be zero, so I reset starting point and delta when state changes to "START" to avoid this "jumping" effect

(cherry picked from commit 2466e88)
@xfangfang xfangfang merged commit f8bedc5 into xfangfang:wiliwili Aug 10, 2024
16 checks passed
@xfangfang
Copy link
Owner

👍I never noticed this before

@XITRIX
Copy link
Collaborator Author

XITRIX commented Aug 10, 2024

On Switch it's really hard to notice, but on iPhone with 120HZ screen it's quite noticeable

@XITRIX XITRIX deleted the pan-gesture-fix branch August 10, 2024 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants