mirror of
https://github.com/photonstorm/phaser
synced 2024-11-16 01:38:23 +00:00
Only reset property if seeking
This commit is contained in:
parent
9f0baeaab7
commit
1ca43444f4
1 changed files with 4 additions and 2 deletions
|
@ -189,8 +189,10 @@ var TweenData = new Class({
|
|||
*
|
||||
* @method Phaser.Tweens.TweenData#reset
|
||||
* @since 3.60.0
|
||||
*
|
||||
* @param {boolean} [isSeeking=false] - Is the Tween Data being reset as part of a Tween seek?
|
||||
*/
|
||||
reset: function ()
|
||||
reset: function (isSeeking)
|
||||
{
|
||||
var tween = this.tween;
|
||||
var totalTargets = tween.totalTargets;
|
||||
|
@ -199,7 +201,7 @@ var TweenData = new Class({
|
|||
var target = tween.targets[targetIndex];
|
||||
var key = this.key;
|
||||
|
||||
if (!this.isPendingRender())
|
||||
if (isSeeking)
|
||||
{
|
||||
target[key] = this.start;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue