Skip to content

Commit b039d0c

Browse files
authored
docs: add zoom property future TODO (#1004)
1 parent 9bf21dc commit b039d0c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/elements/src/overlay/managers/viewport-manager.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ export class ViewportManager {
111111

112112
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
113113
// @ts-ignore
114+
// TODO: Remove @ts-ignore and re-test again when standardized zoom is implemented across major browsers and TypeScript, https://github.com/w3c/csswg-drafts/issues/5623
114115
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
115116
const zoom = parseFloat(window.getComputedStyle(document.body).zoom);
116117
const screenHeight = screenRect.height / zoom;

0 commit comments

Comments
 (0)