Skip to content

Commit 683cf1b

Browse files
committed
+1 px hover area
1 parent 2b6dac7 commit 683cf1b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/editor/src/lib/editor/Editor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5402,7 +5402,7 @@ export class Editor extends EventEmitter<TLEventMap> {
54025402
// Are we close to the shape's edge?
54035403
if (distance <= outerMargin || (hitInside && distance <= 0 && distance > -innerMargin)) {
54045404
if (geometry.isFilled || (isGroup && geometry.children[0].isFilled)) {
5405-
if (distance <= 0) {
5405+
if (distance <= 1) {
54065406
return inMarginClosestToEdgeHit || shape
54075407
}
54085408
// Point is outside the filled shape but within margin — skip (no margin bleed)

0 commit comments

Comments
 (0)