From f44291133f71d8ed88bdd88e686c8810f767021e Mon Sep 17 00:00:00 2001 From: Edwin222 Date: Mon, 13 Aug 2018 20:01:48 +0900 Subject: [PATCH] Fix a bug that tween delay doesn't applied after one loop of timeline --- src/tweens/tween/Tween.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/tweens/tween/Tween.js b/src/tweens/tween/Tween.js index 92845ac41..173898b87 100644 --- a/src/tweens/tween/Tween.js +++ b/src/tweens/tween/Tween.js @@ -710,15 +710,16 @@ var Tween = new Class({ tweenData.state = TWEEN_CONST.PLAYING_FORWARD; } - else if (tweenData.delay > 0) - { - tweenData.elapsed = tweenData.delay; - tweenData.state = TWEEN_CONST.DELAY; - } else { tweenData.state = TWEEN_CONST.PENDING_RENDER; } + + if (tweenData.delay > 0) + { + tweenData.elapsed = tweenData.delay; + tweenData.state = TWEEN_CONST.DELAY; + } } },