mirror of
https://github.com/photonstorm/phaser
synced 2024-11-14 17:07:43 +00:00
tween reset fix
This commit is contained in:
parent
368b37b916
commit
1ead3ecd7d
1 changed files with 8 additions and 5 deletions
|
@ -967,13 +967,16 @@ var Tween = new Class({
|
|||
this.state = TWEEN_CONST.ACTIVE;
|
||||
}
|
||||
|
||||
this.isSeeking = true;
|
||||
|
||||
do
|
||||
if (toPosition > 0)
|
||||
{
|
||||
this.update(0, delta);
|
||||
this.isSeeking = true;
|
||||
|
||||
} while (this.totalProgress < toPosition);
|
||||
do
|
||||
{
|
||||
this.update(0, delta);
|
||||
|
||||
} while (this.totalProgress < toPosition);
|
||||
}
|
||||
|
||||
this.isSeeking = false;
|
||||
|
||||
|
|
Loading…
Reference in a new issue