scrollSnapPointsPolyfill
scrollSnapPointsPolyfill copied to clipboard
CSS scroll Snap Points Polyfill
I've just upgraded to iOS 11 and it no longer works. It just scrolls - there is no snapping anymore.
Expected behaviour, on Safari 9: http://cloud.h-o.nl/gFMU Result with the polyfill on Google Chrome: http://cloud.h-o.nl/gFX9
When i scroll slightly over a snap-point, this polyfill will go with the scroll, displaying the a part of the content that is further than the next snap-point and then...
You should test for prefixed properties, too. Consider using https://github.com/philipwalton/polyfill
Is there a licence for the code in this repo?