Open psidex opened 4 years ago
No solution yet?
You can pass a callback to animate
that is called when it is finished animating, and set a boolean in that callback that indicates that you're ready for the next call to animate
. Or you can decrease the duration of the animation.
Possible duplicate of #255
Thanks for the fix. Here the command for installing from the commit:
npm install --save "git://github.com/Zellerich/progressbar.js.git#0978bd7a45c1e1fcc8cf9b0890caddb5362941f6
Can you test the latest progressbar.js from latest master?
I think this should work similarly as @dmarman commented before:
npm install --save "git://github.com/kimmobrunfeldt/progressbar.js.git#master
~With master i get this Uncaught (in promise) Object { error: "stop() executed while tween isPlaying.", currentState: {…}, attachment: undefined }
~
Issue solved, i mean at least i got no error message and is working for my usage. (using master)
Browser: Firefox 72.0.1 (64-bit)
Use
bar.animate()
when a previousanimate()
call is still being animated, and this error will occur:uncaught exception: Object