mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +00:00
Merge pull request #3923 from Edwin222/comment
Fix a bug that tween delay doesn't applied after one loop of timeline(issue #3841)
This commit is contained in:
commit
e9c34c73a8
1 changed files with 6 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue