fix: redraw

This commit is contained in:
黑岛 2021-06-08 18:41:24 +08:00
parent a6ff470108
commit 0b9f467ce8

View File

@ -540,9 +540,9 @@ export default class WxCanvas {
for (const step of realstepList) { for (const step of realstepList) {
this.implementMinaStep(step); this.implementMinaStep(step);
} }
this.ctx.draw(reserve, func);
realstepList.length = 0; realstepList.length = 0;
} }
this.ctx.draw(reserve, func);
} else if (this.type === "2d") { } else if (this.type === "2d") {
if (!reserve) { if (!reserve) {
this.ctx.clearRect(0, 0, this.canvasNode.width, this.canvasNode.height); this.ctx.clearRect(0, 0, this.canvasNode.width, this.canvasNode.height);