ashthornton / asscroll

Ash's Smooth Scroll 🍑
MIT License
947 stars 27 forks source link

Provide positive scroll position values #42

Closed ashthornton closed 3 years ago

ashthornton commented 3 years ago

scrollPos and smoothScrollPos both return the translate Y value rather than the 'true' scroll position. This makes it confusing when dealing with the value externally, usually resulting in having to manually flip it like -asscroll.smoothScrollPos

ashthornton commented 3 years ago

https://github.com/ashthornton/asscroll/commit/e4e30c9b35a66e7fd56228cd59c254e04cf03573