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

The inertia of scrolling on the Mac touchpad / trackpad. #142

Closed
astrochili opened this issue Oct 20, 2021 · 1 comment
Closed

The inertia of scrolling on the Mac touchpad / trackpad. #142

astrochili opened this issue Oct 20, 2021 · 1 comment
Assignees
Milestone

Comments

@astrochili
Copy link
Contributor

The inertia of scrolling on the Mac trackpad and sometimes on the iOS touchscreen freezes until it completes its "scroll input events queue". This happens when the system keeps sending scrolling messages after releasing the user finger, and the druid thinks it is the user continue scrolling infinitely to top.

I suggest to ignore the accumulated input events when the scroll inertia has reached its limit. Otherwise, it turns out that scrolling "hangs" by inertia for some time, depending on the strength of scrolling touch on the trackpad.

@Insality Insality self-assigned this Oct 20, 2021
@Insality Insality added this to the 0.7.0 milestone Oct 20, 2021
@Insality
Copy link
Owner

I can imagine how it's happened with mac trackpad, but can't how is it possible on iOS devices? Do you have any examples, videos?

I will add Scroll style param WHEEL_SCROLL_BY_INERTION (default - false). If true - mouse wheel will add inertion to scroll (as current behaviour), if false - set position directly per mouse wheel event.

This fix caused because Mac trackpad seems have additional mouse wheel events for simulate inertion. If you uncomfortable with this, you can disable WHEEL_SCROLL_BY_INERTION for more controllable scroll by mouse wheel.

This fix will be released in 0.7.0

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

No branches or pull requests

2 participants