fix(desktop): keep browser surfaces interactive

This commit is contained in:
Mohamed Boudra
2026-08-07 22:34:59 +02:00
parent 98d3281cad
commit dc19b45f23
9 changed files with 234 additions and 34 deletions
+9 -3
View File
@@ -28,14 +28,20 @@ export function getOverlayRoot(): HTMLElement {
if (!el) {
el = document.createElement("div");
el.id = "overlay-root";
el.style.position = "fixed";
el.style.inset = "0";
el.style.pointerEvents = "none";
document.body.appendChild(el);
}
el.style.position = "fixed";
el.style.inset = "0";
el.style.pointerEvents = "none";
el.style.zIndex = String(WEB_SURFACE_PLANE.overlay);
return el;
}
export const WEB_SURFACE_PLANE = {
browser: 0,
overlay: 1,
} as const;
export const OVERLAY_Z = {
floating: 10,
modal: 20,