mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-10-02 21:59:59 +02:00
fix: Nested shape binding
This commit is contained in:
@@ -309,8 +309,6 @@ const bindingStrategyForNewSimpleArrowEndpointDragging = (
|
||||
|
||||
invariant(otherElement, "Other element must be in the elements map");
|
||||
|
||||
const otherIsTransparent = isTransparent(otherElement.backgroundColor);
|
||||
|
||||
return {
|
||||
start: isMultiPoint
|
||||
? { mode: undefined }
|
||||
@@ -320,8 +318,8 @@ const bindingStrategyForNewSimpleArrowEndpointDragging = (
|
||||
focusPoint: origin ?? pointFrom<GlobalPoint>(arrow.x, arrow.y),
|
||||
},
|
||||
end: {
|
||||
mode: "inside",
|
||||
element: otherIsTransparent ? hit : otherElement,
|
||||
mode: "orbit",
|
||||
element: hit,
|
||||
focusPoint: point,
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user