fix: Jump source

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
Mark Tolmacs
2026-03-26 18:11:06 +00:00
parent 9a3795ec2c
commit 193386003f
+20 -4
View File
@@ -750,8 +750,16 @@ const getBindingStrategyForDraggingBindingElementEndpoints_simple = (
: // NOTE: Can only affect the start point because new arrows always drag the end point
opts?.newArrow
? appState.selectedLinearElement!.initialState.origin!
: appState.selectedLinearElement?.initialState.altFocusPoint ||
LinearElementEditor.getPointAtIndexGlobalCoordinates(
: otherBindableElement &&
appState.selectedLinearElement?.initialState
?.arrowOtherEndpointInitialBinding?.fixedPoint
? getGlobalFixedPointForBindableElement(
appState.selectedLinearElement?.initialState
.arrowOtherEndpointInitialBinding.fixedPoint,
otherBindableElement,
elementsMap,
)
: LinearElementEditor.getPointAtIndexGlobalCoordinates(
arrow,
0,
elementsMap,
@@ -762,8 +770,16 @@ const getBindingStrategyForDraggingBindingElementEndpoints_simple = (
element: hit,
focusPoint: endDragged
? globalPoint
: appState.selectedLinearElement?.initialState.altFocusPoint ||
LinearElementEditor.getPointAtIndexGlobalCoordinates(
: otherBindableElement &&
appState.selectedLinearElement?.initialState
?.arrowOtherEndpointInitialBinding?.fixedPoint
? getGlobalFixedPointForBindableElement(
appState.selectedLinearElement?.initialState
.arrowOtherEndpointInitialBinding.fixedPoint,
otherBindableElement,
elementsMap,
)
: LinearElementEditor.getPointAtIndexGlobalCoordinates(
arrow,
-1,
elementsMap,