Skip to content

How to create step by step onWheel gesture #85

Answered by dbismut
Magellol asked this question in Q&A
Discussion options

You must be logged in to vote

@jwmann

You can't scroll quickly, you must wait until last is called, which on a trackpad with inertia can take up to 2-3 seconds.

Hm no, I'm not using last in that example, that I specifically built with inertia in mind and it works on my trackpad. It's very likely that Lethargy does a better job at this though.

It's just a way to tell if the wheel scroll the user makes is 'enough' to trigger a real scroll, including trackpad. So it must be used in conjunction with a timeout.

Lethargy is just a way to distinguish real scroll events from inertia-triggered scroll events. You might use Lethargy so that you can only scroll one frame at a time (which seems to be your intent), but there's …

Replies: 10 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by dbismut
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #85 on December 09, 2020 10:38.