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

Fix Pager direction detection for mouse wheel #1103

Merged
merged 1 commit into from
Feb 14, 2024

Conversation

MatkovIvan
Copy link
Member

Proposed Changes

Pager uses upDownDifference as a source of a scrolling direction that is not correct in the case of mouse wheel scrolling. This PR adds fallback to a velocity direction if drag distance is zero.

Testing

Test: try to scroll back Pager in mpp

Before

pager_before.mp4

After

pager_after.mp4

@MatkovIvan MatkovIvan merged commit fcaca4d into jb-main Feb 14, 2024
6 checks passed
@MatkovIvan MatkovIvan deleted the ivan.matkov/fix-pager-direction branch February 14, 2024 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants