SkidX / tweene

JavaScript Animation Proxy
http://tweene.com
Artistic License 2.0
353 stars 29 forks source link

Calls to .pause() fail after a .restart() #11

Closed rocketapi closed 9 years ago

rocketapi commented 9 years ago

Just noticed that calls to .pause() on timelines have no affect following a call to .restart() a timeline.

Not seeing anything in the docs, so not sure if this is a "feature" or a bug?

If it matters I am running nested timelines when this occurs.

Otherwise this is a great library that has helped a ton.

Thanks.

John

SkidX commented 9 years ago

Hi John, first of all, thanks for the report. Are you calling the pause() on the parent timeline (correct) or on one of the nested timeline (wrong)? Can you put online a codepen that replicates the bug? This would help a lot. Thanks

electronicdreamer commented 9 years ago

Hello,

I've used my pen from another issue : http://codepen.io/anon/pen/zGdXwz

If you click to launch the animation and click on restart, you'll see it plays both tweens at the same time.

Thanks!

SkidX commented 9 years ago

Hi, thanks for the report. I am able to reproduce the issue locally. I can solve it in the next days, I hope it's not an urgent thing.

Thanks again.

electronicdreamer commented 9 years ago

Not urgent, it can wait. Thank you

SkidX commented 9 years ago

Find the issue has been easier than expected, so I just solved it right now.