mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
shorter batchDraw func
This commit is contained in:
parent
683bd8935a
commit
87ded69dc0
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user