fix: Turn of start jump-out

This commit is contained in:
Mark Tolmacs
2025-11-08 18:03:29 +01:00
parent 3ac0a3c3ef
commit 2ab27d5188

View File

@@ -665,23 +665,23 @@ const getBindingStrategyForDraggingBindingElementEndpoints_simple = (
otherBinding.elementId, otherBinding.elementId,
) as NonDeleted<ExcalidrawBindableElement>) ) as NonDeleted<ExcalidrawBindableElement>)
: undefined; : undefined;
// const otherFocusPoint = const otherFocusPoint =
// otherBinding && otherBinding &&
// otherBindableElement && otherBindableElement &&
// getGlobalFixedPointForBindableElement( getGlobalFixedPointForBindableElement(
// otherBinding.fixedPoint, otherBinding.fixedPoint,
// otherBindableElement, otherBindableElement,
// elementsMap, elementsMap,
// ); );
// const otherPoint = LinearElementEditor.getPointAtIndexGlobalCoordinates( // const otherPoint = LinearElementEditor.getPointAtIndexGlobalCoordinates(
// arrow, // arrow,
// startDragged ? -1 : 0, // startDragged ? -1 : 0,
// elementsMap, // elementsMap,
// ); // );
// const otherFocusPointIsInElement = const otherFocusPointIsInElement =
// otherBindableElement && otherBindableElement &&
// otherFocusPoint && otherFocusPoint &&
// isPointInElement(otherFocusPoint, otherBindableElement, elementsMap); isPointInElement(otherFocusPoint, otherBindableElement, elementsMap);
// Handle outside-outside binding to the same element // Handle outside-outside binding to the same element
if (otherBinding && otherBinding.elementId === hit?.id) { if (otherBinding && otherBinding.elementId === hit?.id) {
@@ -760,6 +760,7 @@ const getBindingStrategyForDraggingBindingElementEndpoints_simple = (
const other: BindingStrategy = const other: BindingStrategy =
otherBindableElement && otherBindableElement &&
!otherFocusPointIsInElement &&
appState.selectedLinearElement?.initialState.altFocusPoint appState.selectedLinearElement?.initialState.altFocusPoint
? { ? {
mode: "orbit", mode: "orbit",