From 87ded69dc0b46d2a3d980d8b3f8916f7515a1d96 Mon Sep 17 00:00:00 2001 From: Anton Lavrenov Date: Thu, 7 Apr 2016 11:02:18 +0700 Subject: [PATCH] shorter batchDraw func --- src/Animation.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Animation.js b/src/Animation.js index 2d3c13e9..97b3f311 100644 --- a/src/Animation.js +++ b/src/Animation.js @@ -280,9 +280,8 @@ if (!this.batchAnim) { this.batchAnim = new Anim(function() { - if (that.lastBatchDrawTime && now() - that.lastBatchDrawTime > BATCH_DRAW_STOP_TIME_DIFF) { - that.batchAnim.stop(); - } + // stop animation after first tick + that.batchAnim.stop(); }, this); }