cubiq / iscroll

Smooth scrolling for the web
http://iscrolljs.com
MIT License
12.87k stars 3.8k forks source link

"Proximity" snapping #288

Open matthew-dean opened 12 years ago

matthew-dean commented 12 years ago

As mentioned on Twitter: the iScroll snapping support works really well, but there's some cases where it would be nice to not have a mandatory "snap". "Proximity" snapping is preferred in cases where the distance between snap points might be wider than the screen.

See Microsoft's snapping implementation: http://msdn.microsoft.com/en-us/library/ie/hh772038(v=vs.85).aspx

matthew-dean commented 9 years ago

Note, this is now a standard CSS feature (not just Microsoft's). It would be nice if iScroll could replicate these CSS settings in browsers that don't yet support it.

http://caniuse.com/#feat=css-snappoints http://www.w3.org/TR/css-snappoints-1/