From 2ab27d5188e4530b040a7ea502477424f954ed51 Mon Sep 17 00:00:00 2001 From: Mark Tolmacs Date: Sat, 8 Nov 2025 18:03:29 +0100 Subject: [PATCH] fix: Turn of start jump-out --- packages/element/src/binding.ts | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/packages/element/src/binding.ts b/packages/element/src/binding.ts index 8d708f2516..555c7e318f 100644 --- a/packages/element/src/binding.ts +++ b/packages/element/src/binding.ts @@ -665,23 +665,23 @@ const getBindingStrategyForDraggingBindingElementEndpoints_simple = ( otherBinding.elementId, ) as NonDeleted) : undefined; - // const otherFocusPoint = - // otherBinding && - // otherBindableElement && - // getGlobalFixedPointForBindableElement( - // otherBinding.fixedPoint, - // otherBindableElement, - // elementsMap, - // ); + const otherFocusPoint = + otherBinding && + otherBindableElement && + getGlobalFixedPointForBindableElement( + otherBinding.fixedPoint, + otherBindableElement, + elementsMap, + ); // const otherPoint = LinearElementEditor.getPointAtIndexGlobalCoordinates( // arrow, // startDragged ? -1 : 0, // elementsMap, // ); - // const otherFocusPointIsInElement = - // otherBindableElement && - // otherFocusPoint && - // isPointInElement(otherFocusPoint, otherBindableElement, elementsMap); + const otherFocusPointIsInElement = + otherBindableElement && + otherFocusPoint && + isPointInElement(otherFocusPoint, otherBindableElement, elementsMap); // Handle outside-outside binding to the same element if (otherBinding && otherBinding.elementId === hit?.id) { @@ -760,6 +760,7 @@ const getBindingStrategyForDraggingBindingElementEndpoints_simple = ( const other: BindingStrategy = otherBindableElement && + !otherFocusPointIsInElement && appState.selectedLinearElement?.initialState.altFocusPoint ? { mode: "orbit",