mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-16 22:10:48 +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);
|
otherBindableElement && getElementBounds(otherBindableElement, elementsMap);
|
||||||
const isLargerThanOther =
|
const isLargerThanOther =
|
||||||
otherBindableElement &&
|
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 isIntersecting = otherBounds && doBoundsIntersect(bounds, otherBounds);
|
||||||
// const isNested =
|
// const isNested =
|
||||||
// otherBindableElement && isBindableElementInsideOtherBindable(otherBindableElement, bindableElement);
|
// otherBindableElement && isBindableElementInsideOtherBindable(otherBindableElement, bindableElement);
|
||||||
|
Reference in New Issue
Block a user