Fix occlusion rounding bug (#3400)

* Fix occlusion rounding bug

* Fix contributors
This commit is contained in:
Taylor Obyen 2024-09-20 06:48:44 -04:00 committed by GitHub
parent 1b7123aa94
commit 96ff4f1a4a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -191,7 +191,7 @@ Ben Nguyen <105088397+bpnguyen107@users.noreply.github.com>
Themis Demetriades <themis100@outlook.com>
Luke Bartholomew <lukesbart@icloud.com>
Gregory Abrasaldo <degeemon@gmail.com>
Taylor Obyen <https://github.com/taylorobyen>
Taylor Obyen <https://github.com/taylorobyen>
********************

View file

@ -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);
};