Monday June 27, 2011

Native Scrolling in Web Apps on iOS 5

This is supposed to be covered under the WWDC NDA, but since places like MacStories are breaking the news I might as well weigh in.

Last, iOS 5 beta 2 has introduced a new CSS property that will allow web developers to build web apps powered by native-style momentum scrolling, as noted by Johan Brook. The code is the following:

overflow: scroll;
-webkit-overflow-scrolling: touch;

Remember the big kerfuffle when Apple held off on using the Nitro Javascript JIT for home screen web apps? Remember the rhetoric that Apple is destroying the web by purposely sabotaging the web experience?