mirror of
https://github.com/konvajs/konva.git
synced 2025-10-15 12:34:52 +08:00
shorter batchDraw func
This commit is contained in:
@@ -280,9 +280,8 @@
|
|||||||
|
|
||||||
if (!this.batchAnim) {
|
if (!this.batchAnim) {
|
||||||
this.batchAnim = new Anim(function() {
|
this.batchAnim = new Anim(function() {
|
||||||
if (that.lastBatchDrawTime && now() - that.lastBatchDrawTime > BATCH_DRAW_STOP_TIME_DIFF) {
|
// stop animation after first tick
|
||||||
that.batchAnim.stop();
|
that.batchAnim.stop();
|
||||||
}
|
|
||||||
}, this);
|
}, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user