trackpad-scroll-emulator
trackpad-scroll-emulator copied to clipboard
Native mobile scrolling
Great little script; works a treat!
Just wondering if there's a way to override the script to allow native touch scroll on iOS devices etc?
Actually, this might be possible now (after iOS 5) using -webkit-overflow-scrolling: touch
. This plugin doesn't support it now, but it could be implemented. You should contribute!
Or, in the meantime, conditionally call TrackpadScrollEmulator depending on the iOS version, using CSS to scroll natively instead if supported?
Actually this is not as simple as just testing -webkit-overflow-scrolling: touch
support. Because for example, Android Chrome supports it but returns false
if you test the property.
To be clear, the plugin already use native scrolling, it is only the scrollbar that is emulate, not the scrolling effect.
I'm currently on an update for mobile support anyway!