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

the animation is stopped when i switch the window tab many times #906

Open
JE-lee opened this issue Mar 20, 2019 · 1 comment
Open

the animation is stopped when i switch the window tab many times #906

JE-lee opened this issue Mar 20, 2019 · 1 comment

Comments

@JE-lee
Copy link

JE-lee commented Mar 20, 2019

Your system information

  • VelocityJS version: 2.0.5
  • Browser: 72.0.3626.121(32 位)
  • Operating System: windows 10

Checklist

  • Is this an issue with code?: No
  • Is this an issue with documentation?: No
  • Have you reproduced this in other browsers?: Yes
  • Have you checked for updates?:Yes
  • Have you checked for similar open issues?: Yes

Please describe your issue in as much detail as possible:

I have a series of animations to excute, so it may take a couple of time。
when the animation is executing, if i switch the window tab to make the current site invisible,
the animation is stoped。
and then it can't resume at every time when i return the site。
(sometimes it can resume ,but not every time)

JSFiddle example showing issue in action (code):

https://codepen.io/je-lee/pen/WmgaNz

Go to https://jsfiddle.net/Rycochet/mqv9L27u/ - click the "Fork" button at the top, create the example and copy the new URL back here.

@Rycochet
Copy link
Collaborator

I've had a quick look through your code, and not sure what's going on - but Velocity should behave properly in the background - the result from a Velocity call is also a Promise, so you could actually use them rather than manually creating a Promise - but I'm not sure why that's not working right for you - and can't seem to reproduce it here where it's worked every time (and even finishes in the background etc).

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