Skip to content

Commit

Permalink
fix ussue,when brush is not getting focused after mousing up
Browse files Browse the repository at this point in the history
  • Loading branch information
lilitsimonyan98 committed Dec 24, 2019
1 parent 1ef1fe7 commit dd1d3de
Show file tree
Hide file tree
Showing 2 changed files with 9 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": "1.0.4",
"version": "1.0.5",
"description": "vue-image-markup will provide you to edit uploaded image easily and save it.",
"main": "src/Editor.vue",
"repository": {
Expand Down
9 changes: 8 additions & 1 deletion src/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,16 @@
this.currentActiveMethod = this.drawing;
this.drag();
this.canvas.isDrawingMode = params.drawingMode;
this.canvas.freeDrawingBrush.color = params.stroke;
this.canvas.freeDrawingBrush.width = params.strokeWidth;
this.canvas.isDrawingMode = params.drawingMode;
this.canvas.freeDrawingBrush.shadow = new fabric.Shadow({
blur: 0,
offsetX: 0,
offsetY: 0,
affectStroke: true,
color: params.stroke,
});
},
Expand Down

0 comments on commit dd1d3de

Please sign in to comment.