kimmobrunfeldt / progressbar.js

Responsive and slick progress bars
https://kimmobrunfeldt.github.io/progressbar.js
MIT License
7.81k stars 1.42k forks source link

`uncaught exception: Object` when using animate() during animation #257

Open psidex opened 4 years ago

psidex commented 4 years ago

Browser: Firefox 72.0.1 (64-bit)

Use bar.animate() when a previous animate() call is still being animated, and this error will occur:

uncaught exception: Object

spburden commented 4 years ago

No solution yet?

chrisranderson commented 4 years ago

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.

mtorromeo commented 4 years ago

Possible duplicate of #255

dmarman commented 4 years ago

Thanks for the fix. Here the command for installing from the commit:

npm install --save "git://github.com/Zellerich/progressbar.js.git#0978bd7a45c1e1fcc8cf9b0890caddb5362941f6

kimmobrunfeldt commented 4 years ago

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
Kwaadpepper commented 4 years ago

~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)