Skip to content

Commit

Permalink
repair eraser
Browse files Browse the repository at this point in the history
  • Loading branch information
Dani Mateo committed Oct 12, 2020
1 parent 97890fe commit 08046e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
this.cancelCroppingImage()
},
set(type, params) {
this.canvas.off('mouse:down');
switch (type) {
case "text":
this.currentActiveTool = type;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 08046e6

Please sign in to comment.