mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-15 21:40:06 +02:00
handle overlap when both elements the same size
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user