Closed stavro closed 8 years ago
I believe this has to do with having a delay
added. I would expect stop
to stop upcoming animations even if there was a delay set in the animation parameters.
Hey, you're right. This is a bug when multiple delayed animations are pending.
Just fixed it here: https://github.com/michaelvillar/dynamics.js/commit/b2c039763cc5cb6dc44c08623a5ea99414f04b62
Thanks @michaelvillar!
Calling
dynamics.stop()
doesn't work for certain animation types.Demonstration:
http://codepen.io/anon/pen/GpzoYV