mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-16 05:50:03 +02:00
@@ -411,10 +411,13 @@ const bindingStrategyForNewSimpleArrowEndpointDragging = (
|
||||
const other: BindingStrategy = {
|
||||
mode: otherIsInsideBinding ? "inside" : "orbit",
|
||||
element: otherElement,
|
||||
focusPoint: snapToCenter(
|
||||
focusPoint: otherIsInsideBinding
|
||||
? arrowOriginalStartPoint ?? pointFrom<GlobalPoint>(arrow.x, arrow.y)
|
||||
: snapToCenter(
|
||||
otherElement,
|
||||
elementsMap,
|
||||
arrowOriginalStartPoint ?? pointFrom<GlobalPoint>(arrow.x, arrow.y),
|
||||
arrowOriginalStartPoint ??
|
||||
pointFrom<GlobalPoint>(arrow.x, arrow.y),
|
||||
),
|
||||
};
|
||||
|
||||
@@ -425,7 +428,9 @@ const bindingStrategyForNewSimpleArrowEndpointDragging = (
|
||||
current = {
|
||||
mode: isInsideBinding ? "inside" : "orbit",
|
||||
element: hovered,
|
||||
focusPoint: snapToCenter(hovered, elementsMap, point),
|
||||
focusPoint: isInsideBinding
|
||||
? point
|
||||
: snapToCenter(hovered, elementsMap, point),
|
||||
};
|
||||
} else {
|
||||
current = { mode: null };
|
||||
|
Reference in New Issue
Block a user