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