SmoothScrollAnimations icon indicating copy to clipboard operation
SmoothScrollAnimations copied to clipboard

No cap on the y value of the translate3d when window.scrollY is 0

Open arorayash opened this issue 6 years ago • 1 comments

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

arorayash avatar Jul 24 '19 15:07 arorayash

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

manuelpette avatar Sep 13 '19 14:09 manuelpette