mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
Revert "Fix occlusion rounding bug (#3400)"
This reverts commit 96ff4f1a4a
.
This change broke adding of new occlusions on desktop:
JS error /_anki/js/editor.js:100016 Uncaught TypeError: Cannot read properties of undefined (reading 'getBoundingRect')
This commit is contained in:
parent
221d995180
commit
cf17ca2f84
1 changed files with 1 additions and 1 deletions
|
@ -320,5 +320,5 @@ export const isPointerInBoundingBox = (pointer): boolean => {
|
|||
|
||||
export const getBoundingBox = () => {
|
||||
const canvas = globalThis.canvas;
|
||||
return canvas.getObjects().find((obj) => obj.fill === "transparent").getBoundingRect(true);
|
||||
return canvas.getObjects().find((obj) => obj.fill === "transparent");
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue