iOS 5 Beta 2 Brings Native Style Momentum Scrolling for Web Apps
As per the release notes in iOS 5 Beta 2:
NEW: In iOS 5.0 beta 2, a new inherited CSS property, -webkit-overflow-scrolling, is available. The value touch allows the web developer to opt in to native-style scrolling in an overflow:scroll element. The default value for this property is auto.
Here’s what Johan Brooks has to say on the differences between native scrolling in apps versus web pages:
Thereâ€™s indeed a noticeable difference in momentum between scrolling in native apps and in web pages. Itâ€™s maybe the one single thing that makes you think: â€œOh right, this is a web appâ€. I guess iOS has a different scrolling behavior in web pages since itâ€™s actually helpful when thereâ€™s a lot of tiny information on screen â€“ a fast moving scroll would have been quite tricky to handle when precision-scrolling through long news articles. But for those who really want to create apps for the mobile browser with that native look-and-feel, this behavior is an obstacle.
If you’re running iOS 5 Beta 2, you can check out a scrolling demo here. Check out other iOS 5 Beta 2 discoveries here.
[Johan Brook via Daring Fireball]