Skip to content

Commit

Permalink
fix drawing undo/redo problem
Browse files Browse the repository at this point in the history
  • Loading branch information
GHarutyunyan committed Apr 8, 2020
1 parent 29ccd5f commit 12a10c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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.0.2",
"version": "3.0.3",
"description": "vue-image-markup will provide you to edit uploaded image easily and save it.",
"main": "src/Editor.vue",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions src/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
fontSize: 32,
croppedImage: false,
history: [],
}
},
Expand Down Expand Up @@ -398,6 +399,7 @@
}
},
drawing(params) {
this.canvas.__eventListeners['object:added'] = null;
this.currentActiveMethod = this.drawing;
this.drag();
this.canvas.isDrawingMode = params.drawingMode;
Expand All @@ -416,8 +418,6 @@
});
this.canvas.renderAll();
},
drawRect(params) {
this.drag();
this.canvas.discardActiveObject();
Expand Down

0 comments on commit 12a10c6

Please sign in to comment.