Detecting iOS lack of scroll event in Modernizr?

978 Views Asked by At

The way iOS currently handles the onscroll event is described here. Basically instead of sending multiple onscroll events as the page/element is being scrolled it sends one onscroll event after the page/element has stopped scrolling.

This creates different issues when scripting a dynamic website, and fallbacks are needed to deal with it.

My question is if there is a Modernizr style way of dealing with this "lack of a feature". The other way of dealing with it would be to detect what device is being used, which is not really ideal (future – iOS 7 comes and all of a sudden supports it for all devices and my website still displays fallback).

1

There are 1 best solutions below

2
On

This is just not detectable at this stage. See: https://github.com/Modernizr/Modernizr/wiki/Undetectables

whether a scroll wheel event is coming from a continuous device like a trackpad or the Magic Mouse or from a traditional clicking scroll wheel (in webkit).