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

On visibility change, reset the timer/animation #13

Open
cyrilf opened this issue Apr 20, 2020 · 0 comments
Open

On visibility change, reset the timer/animation #13

cyrilf opened this issue Apr 20, 2020 · 0 comments

Comments

@cyrilf
Copy link
Member

cyrilf commented Apr 20, 2020

When we change tab and comes back, sometime the canvas animation is off.
I guess it's because of the way requestAnimationFrame is implemented.
So one way to solve that would be to reset the canvas on visibility change (browser event)

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

1 participant