From 08046e658a9c0d198a81612c4d450515c9ae38d9 Mon Sep 17 00:00:00 2001 From: Dani Mateo Date: Mon, 12 Oct 2020 22:17:32 +0300 Subject: [PATCH] repair eraser --- src/Editor.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Editor.vue b/src/Editor.vue index edb7c34..ac1ab8e 100644 --- a/src/Editor.vue +++ b/src/Editor.vue @@ -114,6 +114,7 @@ this.cancelCroppingImage() }, set(type, params) { + this.canvas.off('mouse:down'); switch (type) { case "text": this.currentActiveTool = type; @@ -262,7 +263,6 @@ new CropImage(this.canvas, true, false, false, this.params); break; case 'eraser': - this.canvas.off('mouse:down'); this.currentActiveTool = type; let inst = this; this.canvas.isDrawingMode = false;