diff --git a/CONTRIBUTORS b/CONTRIBUTORS index bc66279ee..4a8debe67 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -191,7 +191,7 @@ Ben Nguyen <105088397+bpnguyen107@users.noreply.github.com> Themis Demetriades Luke Bartholomew Gregory Abrasaldo -Taylor Obyen +Taylor Obyen ******************** diff --git a/ts/routes/image-occlusion/tools/lib.ts b/ts/routes/image-occlusion/tools/lib.ts index 3f7483949..fd3609bd3 100644 --- a/ts/routes/image-occlusion/tools/lib.ts +++ b/ts/routes/image-occlusion/tools/lib.ts @@ -320,5 +320,5 @@ export const isPointerInBoundingBox = (pointer): boolean => { export const getBoundingBox = () => { const canvas = globalThis.canvas; - return canvas.getObjects().find((obj) => obj.fill === "transparent"); + return canvas.getObjects().find((obj) => obj.fill === "transparent").getBoundingRect(true); };