From 9fd91d9a590c00b2b93c7e3e098b4134b643b3d9 Mon Sep 17 00:00:00 2001 From: Mark Tolmacs Date: Wed, 18 Mar 2026 16:29:09 +0000 Subject: [PATCH] fix: False binding Signed-off-by: Mark Tolmacs --- .../excalidraw/actions/actionFinalize.tsx | 21 ++----------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/packages/excalidraw/actions/actionFinalize.tsx b/packages/excalidraw/actions/actionFinalize.tsx index 90cc7013a4..277b29d97d 100644 --- a/packages/excalidraw/actions/actionFinalize.tsx +++ b/packages/excalidraw/actions/actionFinalize.tsx @@ -17,7 +17,6 @@ import { import { KEYS, arrayToMap, - getGridPoint, invariant, shouldRotateWithDiscreteAngle, updateActiveTool, @@ -116,27 +115,11 @@ export const actionFinalize = register({ return map; }, new Map()) ?? new Map(); - const startIsDragged = selectedPointsIndices.includes(0); - const lockedGlobal = angleLocked - ? LinearElementEditor.getPointAtIndexGlobalCoordinates( - element, - startIsDragged ? 0 : -1, - elementsMap, - ) - : null; - const [gridSnappedX, gridSnappedY] = getGridPoint( - sceneCoords.x - linearElementEditor.pointerOffset.x, - sceneCoords.y - linearElementEditor.pointerOffset.y, - effectiveGridSize, - ); - const bindingSceneX = lockedGlobal ? lockedGlobal[0] : gridSnappedX; - const bindingSceneY = lockedGlobal ? lockedGlobal[1] : gridSnappedY; - bindOrUnbindBindingElement( element, draggedPoints, - bindingSceneX, - bindingSceneY, + sceneCoords.x, + sceneCoords.y, scene, appState, {