mirror of
https://github.com/photonstorm/phaser
synced 2024-11-25 14:10:42 +00:00
Fixes a bug #3651
Describe the changes below: The tween animation was getting stuck when calling restart on it after being added. It now checks to see if this.state === TWEEN_CONST.PENDING_ADD in the tween restart function If true, sets this.seek(0) and this.parent.makeActive(this) This fixes the issue that makes the tween stuck when restarting the new tween directly after adding a the new tween. Updates to package.json and package-lock.json were undone from the last pull request.
This commit is contained in:
parent
6af861b813
commit
de759b69a5
1 changed files with 1 additions and 1 deletions
2
dist/phaser.js
vendored
2
dist/phaser.js
vendored
|
@ -19045,7 +19045,7 @@ var Tween = new Class({
|
|||
*/
|
||||
restart: function ()
|
||||
{
|
||||
if (this.state === TWEEN_CONST.REMOVED)
|
||||
if (this.state === TWEEN_CONST.REMOVED || this.state === TWEEN_CONST.PENDING_ADD)
|
||||
{
|
||||
this.seek(0);
|
||||
this.parent.makeActive(this);
|
||||
|
|
Loading…
Reference in a new issue