mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-18 23:10:16 +02:00
fix: Reverse
This commit is contained in:
@@ -708,7 +708,7 @@ export const isBindableElementInsideOtherBindable = (
|
||||
return corners.map((corner) => pointRotateRads(corner, center, angle));
|
||||
};
|
||||
|
||||
const offset = Math.max(innerElement.width, innerElement.height) / 20; // 5% offset
|
||||
const offset = (-1 * Math.max(innerElement.width, innerElement.height)) / 20; // 5% offset
|
||||
const innerCorners = getCornerPoints(innerElement, offset);
|
||||
|
||||
// Check if all corner points of the inner element are inside the outer element
|
||||
|
Reference in New Issue
Block a user