mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02: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
|
@ -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>
|
||||
|
||||
********************
|
||||
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue