Skip to content

Commit

Permalink
Deselect crop on draw to prevent accidentally extracting from only one
Browse files Browse the repository at this point in the history
  • Loading branch information
hkolbeck committed Jul 29, 2023
1 parent 273c582 commit a02f628
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ function handleMouseMove(e) {
}

function handleMouseUp(e) {
MyAltTextOrg.canvas.discardActiveObject(null);
MyAltTextOrg.crops.active.currRect = null
MyAltTextOrg.crops.active.currRectStart = null
}
Expand Down

0 comments on commit a02f628

Please sign in to comment.