From 0b9f467ce89fcecd878fe6549e96abd9cc215405 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=91=E5=B2=9B?= Date: Tue, 8 Jun 2021 18:41:24 +0800 Subject: [PATCH] fix: redraw --- lib/wx-canvas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wx-canvas.js b/lib/wx-canvas.js index 4711390..bb54ee4 100644 --- a/lib/wx-canvas.js +++ b/lib/wx-canvas.js @@ -540,9 +540,9 @@ export default class WxCanvas { for (const step of realstepList) { this.implementMinaStep(step); } - this.ctx.draw(reserve, func); realstepList.length = 0; } + this.ctx.draw(reserve, func); } else if (this.type === "2d") { if (!reserve) { this.ctx.clearRect(0, 0, this.canvasNode.width, this.canvasNode.height);