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 : // NOTE: Can only affect the start point because new arrows always drag the end point
opts?.newArrow opts?.newArrow
? appState.selectedLinearElement!.initialState.origin! ? appState.selectedLinearElement!.initialState.origin!
: appState.selectedLinearElement?.initialState.altFocusPoint || : otherBindableElement &&
LinearElementEditor.getPointAtIndexGlobalCoordinates( appState.selectedLinearElement?.initialState
?.arrowOtherEndpointInitialBinding?.fixedPoint
? getGlobalFixedPointForBindableElement(
appState.selectedLinearElement?.initialState
.arrowOtherEndpointInitialBinding.fixedPoint,
otherBindableElement,
elementsMap,
)
: LinearElementEditor.getPointAtIndexGlobalCoordinates(
arrow, arrow,
0, 0,
elementsMap, elementsMap,
@@ -762,8 +770,16 @@ const getBindingStrategyForDraggingBindingElementEndpoints_simple = (
element: hit, element: hit,
focusPoint: endDragged focusPoint: endDragged
? globalPoint ? globalPoint
: appState.selectedLinearElement?.initialState.altFocusPoint || : otherBindableElement &&
LinearElementEditor.getPointAtIndexGlobalCoordinates( appState.selectedLinearElement?.initialState
?.arrowOtherEndpointInitialBinding?.fixedPoint
? getGlobalFixedPointForBindableElement(
appState.selectedLinearElement?.initialState
.arrowOtherEndpointInitialBinding.fixedPoint,
otherBindableElement,
elementsMap,
)
: LinearElementEditor.getPointAtIndexGlobalCoordinates(
arrow, arrow,
-1, -1,
elementsMap, elementsMap,