diff --git a/packages/element/src/binding.ts b/packages/element/src/binding.ts index cedf05c62..8ad101d8a 100644 --- a/packages/element/src/binding.ts +++ b/packages/element/src/binding.ts @@ -1270,7 +1270,10 @@ export const updateBoundPoint = ( otherBindableElement && getElementBounds(otherBindableElement, elementsMap); const isLargerThanOther = otherBindableElement && - compareElementArea(bindableElement, otherBindableElement) < 0; + compareElementArea(bindableElement, otherBindableElement) < + // if both shapes the same size, pretend the other is larger + (startOrEnd === "endBinding" ? 1 : 0); + const isIntersecting = otherBounds && doBoundsIntersect(bounds, otherBounds); // const isNested = // otherBindableElement && isBindableElementInsideOtherBindable(otherBindableElement, bindableElement);