Merge pull request #5987 from Mesonyx/fix_tween_reset

Bugfix: Tween Reset Fix
This commit is contained in:
Richard Davey 2022-02-03 15:13:07 +00:00 committed by GitHub
commit 26a27936b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;