SmoothScrollAnimations
SmoothScrollAnimations copied to clipboard
No cap on the y value of the translate3d when window.scrollY is 0
When scrolled to the top of the page, the data-scroll element keeps updating the transform style with exponential y values incessantly, even when no scroll event is being fired. Looks like setting a min of y value should fix it.
Here is the screen recording of it - https://cl.ly/e4a1b6e960e9
For anyone stumbling upon this issue, while we wait for the PR to be merged you can find the version with the fix here: https://github.com/manuelpette/SmoothScrollAnimations