-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Scrolling not inertial on mobile safari #59
Comments
Great suggestion. Thank you! I will try this. :) |
Sure thing! I'm now looking into issues relating to https://www.tjvantoll.com/2012/08/19/onscroll-event-issues-on-mobile-browsers/ : the onScroll handler will not fire until the very end of the inertial scroll, which means new elements will not be rendered until the scroll stops. I'm looking into how we can fire onScroll events during the middle of the inertial scroll so that this doesn't happen. |
Initial testing seems promising (at least in the simulator). |
Cool! Regarding my other issue: I've found that scrollTop is not updated until the end of the scroll when using UIWebView (but not Safari), which makes it impossible to update the visible cells during the inertial scroll :( |
@aquach Can you check out the issues/53-and-59 branch? Give the demo app a spin on your phone and let me know what you think? You can set the "Overscan" value to something like 5 or 10 and then scroll around and see how the smoothness feels. It should be much less flickery than before (at least in my testing). |
I think I'm going to proceed with a point release of this feature only and leave #53 as a separate issue until I hear back from you. :) |
…nertial scrolling on mobile devices.
Added `-webkit-overflow-scrolling: touch` for smoother inertial scrolling on mobile devices
Awesome, thanks! I'll check out the other one. On Sat, Jan 16, 2016 at 10:06 AM Brian Vaughn notifications@github.com
|
When using VirtualScroll in an iOS app, the scrolling is not inertial. I think this can be fixed by adding
-webkit-overflow-scrolling: touch
to theVirtualScroll
div, but I thought I'd flag it here so you could investigate it on mobile yourself.The text was updated successfully, but these errors were encountered: