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

Multiple calls of easyScroll() end up not working #7

Open
yevgeniy-belov opened this issue Jan 11, 2020 · 4 comments
Open

Multiple calls of easyScroll() end up not working #7

yevgeniy-belov opened this issue Jan 11, 2020 · 4 comments

Comments

@yevgeniy-belov
Copy link

I'm calling easyScroll() couple of times in a row.
First call - everything works as expected.
Second call - the duration/speed of the animation is slowing down to ~half.
Third call - the script is stuck. Probably the duration is very long.

@tarundugar
Copy link
Contributor

@cssberries ill check

@Cuperino
Copy link
Contributor

I call easyScroll() multiple times in a row and don't have this issue. I did notice previous calls continue to run in the background until the animation completes, even if their results are not visible because the more recent calls to requestanimationframe shadow previous calls.

What versions of which browsers are/were you using @cssberries? I've personally tested this on the current Firefox 74.0 and Google Chrome 80.0.3987.149.

@yevgeniy-belov
Copy link
Author

It was Chromium 77.0.3844.0.

@tarun-dugar
Copy link
Owner

@cssberries are you calling it back to back for the same element?

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

4 participants