Skip to content

Commit f442911

Browse files
committed
Fix a bug that tween delay doesn't applied after one loop of timeline
1 parent c944049 commit f442911

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

src/tweens/tween/Tween.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -710,15 +710,16 @@ var Tween = new Class({
710710

711711
tweenData.state = TWEEN_CONST.PLAYING_FORWARD;
712712
}
713-
else if (tweenData.delay > 0)
714-
{
715-
tweenData.elapsed = tweenData.delay;
716-
tweenData.state = TWEEN_CONST.DELAY;
717-
}
718713
else
719714
{
720715
tweenData.state = TWEEN_CONST.PENDING_RENDER;
721716
}
717+
718+
if (tweenData.delay > 0)
719+
{
720+
tweenData.elapsed = tweenData.delay;
721+
tweenData.state = TWEEN_CONST.DELAY;
722+
}
722723
}
723724
},
724725

0 commit comments

Comments
 (0)