CreateJS / TweenJS

A simple but powerful tweening / animation library for Javascript. Part of the CreateJS suite of libraries.
http://createjs.com/
MIT License
3.56k stars 967 forks source link

setPaused(false) has unexpected result #40

Closed onedrop closed 10 years ago

onedrop commented 10 years ago

Calling setPaused(false) on a tween that is running causes the tween to run at a faster speed. Further calls to setPaused(false) cause it run even faster.

I expected it to just ignore the call and continue to run normally since it is already unpaused.

var tween = createjs.Tween.get(something).to({y:0}, 30000);
tween.setPaused(false); // tween speeds up
tween.setPaused(false); // tween speeds up more
lannymcnie commented 10 years ago

Thanks for the report. This has been fixed, and pushed the the NEXT version in GitHub.