How much support is there for -webkit-overflow-scr

2019-01-11 07:33发布

问题:

How many browsers support

-webkit-overflow-scrolling:touch

iOS5 does, what about the rest of them, and android etc..

回答1:

As of this writing, -webkit-overflow-scrolling was exclusive to Mobile Safari on iOS 5 and later.

As of mid-2012, the latest Android version (4.1 Jelly Bean) does not support it, but it IS supported in Chrome for Android, which can be downloaded from Google Play (and only supports Android 4.0+). Android 3.0+ supports overflow: scroll, but it's not very snappy.



回答2:

Just iOS5 right now. The only other major mobile browser that would use this would be Chrome as others have their own extensions.



回答3:

Since this post is now 2 years old, just thought I'd share some helpful updates I dug up:

Chrome Browser for Android no longer supports -webkit-overflow-scrolling? Is there an alternative?

http://cantina.co/2012/03/06/ios-5-native-scrolling-grins-and-gothcas/



回答4:

Please note that the Android 4.1.2 Stock Browser that comes with the Galaxy S2 official firmware reports that it supports webkit-overflow-scrolling, but when you poll the value, it's always an empty string.

Which can lead to nasty bugs like this one: https://github.com/lazd/iNoBounce/issues/8