resumes on rescale only if running

This commit is contained in:
Francisco Dans 2015-08-03 16:03:23 +02:00
parent d41e42f838
commit 579326954b

View File

@ -83,7 +83,7 @@ var cancelAnimationFrame = global.cancelAnimationFrame
this.range = torque.math.linear(0, this.options.steps); this.range = torque.math.linear(0, this.options.steps);
this.rangeInv = this.range.invert(); this.rangeInv = this.range.invert();
this.time(this._time); this.time(this._time);
this.start(); this.running? this.start(): this.pause();
return this; return this;
}, },