Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
arorayash opened this issue Jul 24, 2019 · 1 comment
Open

Comments

@arorayash
Copy link

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

@manuelpette
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants