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