Skip to content

Commit

Permalink
Merge pull request #3923 from Edwin222/comment
Browse files Browse the repository at this point in the history
Fix a bug that tween delay doesn't applied after one loop of timeline(issue #3841)
  • Loading branch information
photonstorm committed Apr 8, 2019
2 parents ded1320 + f442911 commit e9c34c7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/tweens/tween/Tween.js
Expand Up @@ -736,15 +736,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;
}
}
},

Expand Down

0 comments on commit e9c34c7

Please sign in to comment.