-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
ScrollView: momentum scroll events #1021
Comments
I guess that to add support for the scroll momentum callbacks there needs to be a way to detect if the scroll is done with momentum. You could always check for the scroll speed, but that is not really the same thing as you call do a scroll movement fast without it having momentum. Is anyone aware of any existing Javascript implementations where such gesture would be detected? |
My initial thought is that if a scroll is initiated by a touch, and scroll events are still firing while there is no active touch, we're in a "momentum" phase of the scroll. I don't think momentum events can exist for mouse/wheel-triggered scrolls. And the drag start event would fire when touch-scrolling starts, and drag end would fire when touch-scrolling ends. But would have to check when the events fire for native to confirm. |
At least on macos with a trackpad you can experience them in all browsers. Might this help to finish touchable support as some issues with those might be related to some missing events (eg: for scroll responder?) |
This comment has been minimized.
This comment has been minimized.
me too |
For anyone needing a temp workaround I made a hook...
|
Anyone know if this has been fixed or if there's another way of achieving this effect on RN web? |
Here's my solution: #2249 (comment) |
There is a problem with this solution. When the finger drags the scroll wheel to roll a certain distance without releasing the finger for about 1 second, releasing the finger will not trigger onScrollEnd |
Look into supporting momentum scroll events.
The text was updated successfully, but these errors were encountered: