ucla-oarc-mobile / mwf

UCLA Mobile Web Framework
http://mwf.ucla.edu
Other
86 stars 25 forks source link

Include Modernizr test for CSS overflow scrolling. #142

Closed Trott closed 12 years ago

Trott commented 12 years ago

I propose that we include the css_overflow_scrolling test in our Modernizr build. This test is useful in at least two situations on mobile web sites:

1) -webkit-overflow-scrolling:touch can be used to get momentum scrolling on scrollable elements in iOS. This gives the scrollable element a more natural and iOS-like feel. See http://johanbrook.com/browsers/native-momentum-scrolling-ios-5/

2) Detecting overflow-scrolling in combination with detecting touch can be used to avoid a long-standing Android bug wherein overflow:auto results in content being basically inaccessible. See http://code.google.com/p/android/issues/detail?id=2911 for the bug.

The UCSF develop build currently uses this Modernizr test for both of these issues.