handle overlap when both elements the same size
This commit is contained in:
parent
4e7b399927
commit
6c2f5dbd81
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user