mirror of
https://github.com/NoCrypt/migu.git
synced 2026-03-24 03:17:46 +00:00
feat: force landscape on fullscreen
This commit is contained in:
parent
80050fa6e1
commit
8b992cb779
1 changed files with 5 additions and 0 deletions
|
|
@ -100,6 +100,11 @@
|
|||
// document.fullscreenElement isn't reactive
|
||||
document.addEventListener('fullscreenchange', () => {
|
||||
isFullscreen = !!document.fullscreenElement
|
||||
if (document.fullscreenElement) {
|
||||
screen.orientation.lock('landscape')
|
||||
} else {
|
||||
screen.orientation.unlock()
|
||||
}
|
||||
})
|
||||
|
||||
function handleHeaders () {
|
||||
|
|
|
|||
Loading…
Reference in a new issue