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,
) as NonDeleted<ExcalidrawBindableElement>)
: 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",