fix: Reverse

This commit is contained in:
Mark Tolmacs
2025-09-13 11:22:45 +02:00
parent ee6f4d9ce5
commit 65a105e30a

View File

@@ -708,7 +708,7 @@ export const isBindableElementInsideOtherBindable = (
return corners.map((corner) => pointRotateRads(corner, center, angle)); 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); const innerCorners = getCornerPoints(innerElement, offset);
// Check if all corner points of the inner element are inside the outer element // Check if all corner points of the inner element are inside the outer element