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
the removed animation played when page state changed (document visibilitychange event) #560
Comments
Fixed in v3.1.0! |
@juliangarnier @chrisbrown-io I think bug is still there, at least partially perhaps. Steps to reproduce:
Actual results: upd: opened PR #701 |
fljot
added a commit
to fljot/anime
that referenced
this issue
Jul 6, 2020
…liangarnier#560) instances paused by user were starting again after returning to browser tab ('visibilitychange' event)
fljot
added a commit
to fljot/anime
that referenced
this issue
Jul 6, 2020
…liangarnier#560) instances paused by user were starting again after returning to browser tab ('visibilitychange' event)
fljot
added a commit
to fljot/anime
that referenced
this issue
Jul 19, 2020
Bug description: animation instances, previously paused by user, were activated again after returning back to browser tab ('visibilitychange' event). This could cause unwanted animations and memory leaks. Demo: https://codepen.io/fljot/pen/oNbEdBj Solution: Instead of dealing with animations' public API (pause, play methods), which are used in userland code, we suspend engine itself (rAF ticks).
fljot
added a commit
to fljot/anime
that referenced
this issue
Jul 19, 2020
Bug description: animation instances, previously paused by user, were activated again after returning back to browser tab ('visibilitychange' event). This could cause unwanted animations and memory leaks. Demo: https://codepen.io/fljot/pen/oNbEdBj Solution: Instead of dealing with animations' public API (pause, play methods), which are used in userland code, we suspend engine itself (rAF ticks).
juliangarnier
added a commit
that referenced
this issue
Oct 11, 2020
Fix bug with 'visibilitychange' event and paused instances (fixes: #560)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug:
I remove an animation, but it played when i trigger the document visibilitychange event.
I found that It doesn't remove the animation when i removed. And when it run into visibilitychange event, it played all of pause animation.
To Reproduce:
Expected behavior:
Desktop:
browser chrome v73.0.3683.75
The text was updated successfully, but these errors were encountered: