Skip to content

Commit aeb3cc1

Browse files
authored
Merge pull request #26 from alt-text-org/canvas-cropping
Deselect crop on draw to prevent accidentally extracting from only one
2 parents 8791713 + a02f628 commit aeb3cc1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/canvas.js

+1
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ function handleMouseMove(e) {
188188
}
189189

190190
function handleMouseUp(e) {
191+
MyAltTextOrg.canvas.discardActiveObject(null);
191192
MyAltTextOrg.crops.active.currRect = null
192193
MyAltTextOrg.crops.active.currRectStart = null
193194
}

0 commit comments

Comments
 (0)