-
Notifications
You must be signed in to change notification settings - Fork 58
Trackpad continued scrolling #12
Comments
Noticed the same issue, because some devices have an important inertia and keep emitting events for a while (wheel). Playing with the animation timing helped reducing the effect but then the resulting animation was too slow. I wanted to use lodash's debounce with leading edge option, but couldn't override the wheel event handler, which is handled within. |
Same problem here. |
I have the same problem. 'swipeThreshold' doesn't seems to work. Any other ideas? |
This is probably an issue with kinetic scrolling (especially on Apple devices) which always has been problematic. It sends scroll events even after the gesture is completed. To solve this I think you need to detect the inertia of the scroll and ignore those events. Would love to see this implemented, multiple scrolling is super annoying. |
Thanks, I'll look in to this 👍 |
The only downside to lethargy would be that an intentional strong swipe would only scroll maximum one page. |
Any progress on this bug? |
Hello, would love this to be looked over too +1 :) |
We can't use pageable.js because of this bug :( |
Anyone found a solution? |
Any News ? |
My solution is making pageable's wheel event disabled and using js's wheel event, triggerd keydown event(ArrowUp, ArrowDown). |
For those who still need help with this issue, I fixed it using suggestions from @TuringJest and @jjjinhyeok.
This should disable the wheel event in Pageable and have Lethargy listen to all scroll events and then send a next/prev command when a valid scroll is detected. |
I've noticed that when scrolling on a trackpad that Pageable has a tendency to scroll through two or more pages (depending on how "aggressive" the scroll gesture was). This is something that I've been able to replicate in multiple browsers (Chrome/Firefox/Safari) and on both Mac and PC.
Should also note that adjusting the swipeThreshold doesn't seem to affect this behavior, and that it is still possible to only scroll one page at a time (albeit with significantly and unnaturally small swipe gestures on the trackpad).
The text was updated successfully, but these errors were encountered: