mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-14 17:54:47 +01:00
fix: Turn of start jump-out
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user