Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Module utils/fullscreen

    Cross-browser fullscreen-state helper.

    Safari < 16.4 exposes only the webkit-prefixed fullscreen API, so a plain document.fullscreenElement check misses fullscreen entered via webkitRequestFullscreen. Every consumer that keys behaviour off "are we fullscreen?" (canvas sizing, Escape handling, the control-rail auto-hide, the window-event resize) must use this so the standard and webkit paths stay in sync — otherwise one site takes the wrong branch on legacy Safari.

    isDocumentFullscreen