mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -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
|
@ -191,7 +191,7 @@ Ben Nguyen <105088397+bpnguyen107@users.noreply.github.com>
|
||||||
Themis Demetriades <themis100@outlook.com>
|
Themis Demetriades <themis100@outlook.com>
|
||||||
Luke Bartholomew <lukesbart@icloud.com>
|
Luke Bartholomew <lukesbart@icloud.com>
|
||||||
Gregory Abrasaldo <degeemon@gmail.com>
|
Gregory Abrasaldo <degeemon@gmail.com>
|
||||||
Taylor Obyen <https://github.com/taylorobyen>
|
Taylor Obyen <https://github.com/taylorobyen>
|
||||||
|
|
||||||
********************
|
********************
|
||||||
|
|
||||||
|
|
|
@ -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