trackpad-scroll-emulator icon indicating copy to clipboard operation
trackpad-scroll-emulator copied to clipboard

Native mobile scrolling

Open Boolian opened this issue 11 years ago • 2 comments

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?

Boolian avatar May 14 '13 07:05 Boolian

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?

yohsuzuki avatar May 14 '13 07:05 yohsuzuki

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!

Grsmto avatar Jun 17 '13 08:06 Grsmto