-webkit-overflow-scrolling polyfill or function detection

-webkit-overflow-scrolling is new to iOS 5. I'm looking for a CSS polyfill or method, not a user agent reading, to determine the availability of this function. The modernizer does not detect this.

+4
source share
1 answer

Modernizr does not define a default property, but you can add your own test to it.

Just call this code anywhere:

 Modernizr.addTest('overflowscrolling', function() { return Modernizr.testAllProps("overflowScrolling"); }); 

after the call, your body element will either have an overflowscrolling class or no-overflowscrolling class, and you can check the support at Modernizr.overflowscrolling .

+4
source

Source: https://habr.com/ru/post/1387663/


All Articles