Fix a bug that tween delay doesn't applied after one loop of timeline

This commit is contained in:
Edwin222 2018-08-13 20:01:48 +09:00
parent c94404986c
commit f44291133f

View file

@ -710,15 +710,16 @@ var Tween = new Class({
tweenData.state = TWEEN_CONST.PLAYING_FORWARD; tweenData.state = TWEEN_CONST.PLAYING_FORWARD;
} }
else if (tweenData.delay > 0)
{
tweenData.elapsed = tweenData.delay;
tweenData.state = TWEEN_CONST.DELAY;
}
else else
{ {
tweenData.state = TWEEN_CONST.PENDING_RENDER; tweenData.state = TWEEN_CONST.PENDING_RENDER;
} }
if (tweenData.delay > 0)
{
tweenData.elapsed = tweenData.delay;
tweenData.state = TWEEN_CONST.DELAY;
}
} }
}, },