Skip to content

Commit

Permalink
Merge pull request #26 from alt-text-org/canvas-cropping
Browse files Browse the repository at this point in the history
Deselect crop on draw to prevent accidentally extracting from only one
  • Loading branch information
hkolbeck committed Jul 29, 2023
2 parents 8791713 + a02f628 commit aeb3cc1
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 aeb3cc1

Please sign in to comment.