mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Fix occlusion rounding bug (#3400)
* Fix occlusion rounding bug * Fix contributors
This commit is contained in:
parent
1b7123aa94
commit
96ff4f1a4a
2 changed files with 2 additions and 2 deletions
|
@ -320,5 +320,5 @@ export const isPointerInBoundingBox = (pointer): boolean => {
|
||||||
|
|
||||||
export const getBoundingBox = () => {
|
export const getBoundingBox = () => {
|
||||||
const canvas = globalThis.canvas;
|
const canvas = globalThis.canvas;
|
||||||
return canvas.getObjects().find((obj) => obj.fill === "transparent");
|
return canvas.getObjects().find((obj) => obj.fill === "transparent").getBoundingRect(true);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue