From 4970430fb70c7854bde8a604ff781ab5ee4370cc Mon Sep 17 00:00:00 2001 From: 0JARVIS0 <709406687@qq.com> Date: Wed, 9 Jun 2021 09:45:57 +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);