Skip to content

Commit

Permalink
Remove draw on mouseout, fixes #1865
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmartel committed Feb 11, 2025
1 parent d1f5a13 commit 8a70d7a
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/tools/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,20 +477,6 @@ export class Draw {
this.#setToNotDrawingState();
};

/**
* Handle mouse out event.
*
* @param {object} event The mouse out event.
*/
mouseout = (event) => {
// exit if not started draw
if (!this.#isDrawing) {
return;
}
const layerDetails = getLayerDetailsFromEvent(event);
this.#finishShapeGroupCreation(layerDetails.groupDivId);
};

/**
* Handle touch start event.
*
Expand Down

0 comments on commit 8a70d7a

Please sign in to comment.