fix(core): [PKG-DPIP-05] keep web fullscreen in the active document

This commit is contained in:
Harvey Zhao committed 2026-09-12 22:44:01 +08:00
1 parent 401c5e9684
commit 7e37fd4d0e
19 files changed
+1408 -15

No files matched your search

@@ -62,8 +62,9 @@ export function webFullscreen(art: WebFullscreenHost): (value: boolean) => void
saved = { placement: capturePlacement($player), style: $player.getAttribute('style') }
const snapshot = saved
try {
if (art.constructor.FULLSCREEN_WEB_IN_BODY && $player.parentNode !== document.body)
document.body.appendChild($player)
const body = $player.ownerDocument.body
if (art.constructor.FULLSCREEN_WEB_IN_BODY && $player.parentNode !== body)
body.appendChild($player)
if (!active())
return
art.state = 'fullscreenWeb'