ckrack / scrollsnap-polyfill

A polyfill for CSS scroll snapping
MIT License
217 stars 35 forks source link

Fix getXSnapLength/getYSnapLength to be only value which makes sense #3

Open frankier opened 8 years ago

frankier commented 8 years ago

This is the only thing that makes sense in dimensional terms. This function returns something in pixels so it can only be getWidth(obj) or declaration.value