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 966 forks source link

Tweens "elapsed" time isn't calculated right in NEXT #53

Closed lannymcnie closed 9 years ago

lannymcnie commented 9 years ago

It seems like the latest changes to TweenJS (or possibly Ticker) have caused some issues with all tweens. Tweens started on document load run fine, but the time that Tweens use seems to be when the document loads, and not when the tween starts - so if the tween kicks off 1 second after document load, it will jump to 1 second into the tween immediately.

This example attached shows the issue with the latest NEXT source as of Nov 20, 2014

createjs.Tween.get({right:0}).to({right: 500}, 3000).on("change", function(e) {
    console.log(e.target.target.right); // Outputs the
});
lannymcnie commented 9 years ago

Fixed in EaselJS and TweenJS