Export to GitHub

tweensy - issue #14

Resets to 0 when the object at the same position already.


Posted on May 5, 2010 by Grumpy Ox

I'm not sure, but i think it's an issue (Looks really like that).

What steps will reproduce the problem? 1. I call the following: Tweensy.to( sprite, { x:_target_pos.x, y:_target_pos.y }, duration, Linear.easeNone, 0, null, onComplete ); 2. And if the sprite is at the same position exactly (_target_pos), then it starts the tween from 0,0. 3. A little debugging and i found than in method update of TweensyTimeline, in this line:

var position : Number = ease.apply(null, args);

position is returned as NaN.

What is the expected output? What do you see instead?

I guess it must end the tweening immediately? Or probably check if the object has the same properties already.

What version of the product are you using? On what operating system? The latest. Got via svn.

Please provide any additional information below.

Comment #1

Posted on May 5, 2010 by Grumpy Ox

Found another thing: duration is 0.

Probably it would be less error-prone if to add a check for zero duration?

Status: New

Labels:
Type-Defect Priority-Medium