We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b6dac7 commit 683cf1bCopy full SHA for 683cf1b
1 file changed
packages/editor/src/lib/editor/Editor.ts
@@ -5402,7 +5402,7 @@ export class Editor extends EventEmitter<TLEventMap> {
5402
// Are we close to the shape's edge?
5403
if (distance <= outerMargin || (hitInside && distance <= 0 && distance > -innerMargin)) {
5404
if (geometry.isFilled || (isGroup && geometry.children[0].isFilled)) {
5405
- if (distance <= 0) {
+ if (distance <= 1) {
5406
return inMarginClosestToEdgeHit || shape
5407
}
5408
// Point is outside the filled shape but within margin — skip (no margin bleed)
0 commit comments