Skip to content

Commit

Permalink
fix: dblClick editing for draw element
Browse files Browse the repository at this point in the history
pubuzhixing8 committed Jan 3, 2025
1 parent 660968c commit f72790e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/drawnix/src/plugins/freehand/with-freehand.ts
Original file line number Diff line number Diff line change
@@ -49,11 +49,11 @@ export const withFreehand = (board: PlaitBoard) => {
return isRectangleHit(element, selection);
};

board.isHit = (element, point) => {
board.isHit = (element, point, isStrict?: boolean) => {
if (Freehand.isFreehand(element)) {
return isHitFreehand(board, element, point);
}
return isHit(element, point);
return isHit(element, point, isStrict);
};

board.getOneHitElement = (elements) => {

0 comments on commit f72790e

Please sign in to comment.