Skip to content

Commit

Permalink
Fix setTool(selectMode) bug #11
Browse files Browse the repository at this point in the history
  • Loading branch information
lilitsimonyan98 committed Sep 3, 2020
1 parent 7618d0a commit 1bd3d4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-image-markup",
"version": "3.1.8",
"version": "3.1.9",
"description": "vue-image-markup will provide you to edit uploaded image easily and save it.",
"main": "src/Editor.vue",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@
this.cancelCroppingImage()
},
set(type, params) {
this.canvas.off('mouse:down');
switch (type) {
case "text":
this.currentActiveTool = type;
Expand Down Expand Up @@ -263,6 +262,7 @@
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 1bd3d4f

Please sign in to comment.