From 579326954b094bbb8094b4590cb27a6198e96070 Mon Sep 17 00:00:00 2001 From: Francisco Dans Date: Mon, 3 Aug 2015 16:03:23 +0200 Subject: [PATCH] resumes on rescale only if running --- lib/torque/animator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/torque/animator.js b/lib/torque/animator.js index f908bc6..3ea8da0 100644 --- a/lib/torque/animator.js +++ b/lib/torque/animator.js @@ -83,7 +83,7 @@ var cancelAnimationFrame = global.cancelAnimationFrame this.range = torque.math.linear(0, this.options.steps); this.rangeInv = this.range.invert(); this.time(this._time); - this.start(); + this.running? this.start(): this.pause(); return this; },