openfl / actuate

Actuate is a flexible, fast "tween" library for animations in Haxe
MIT License
158 stars 66 forks source link

Actuate.stop with complete = true does not respect the reverse flag #99

Open chatziko opened 5 years ago

chatziko commented 5 years ago

Actuate.stop(target, null, true) should apply the final values of the animation (as if it had finished normally). In case of a reverse'ed tween, these should be the original values of the target, but currently the values provided to Actuate.tween are set (the starting values of the animation).

target.x = 10;
Actuate.tween(target, 1, { x: 20 }).reverse();
Actuate.stop(target, null, true);
trace(target.x);
// outputs 20, should be 10