increpare / PuzzleScript

Open Source HTML5 Puzzle Game Engine
MIT License
905 stars 160 forks source link

fullscreen games go black sometimes on itch #990

Closed increpare closed 6 months ago

increpare commented 6 months ago

happened with edge on windows for me, but it might be more general. no repro yet, but it's not just me (cf https://increpare.itch.io/butteater/comments )

increpare commented 6 months ago

laut des Noybes:

"It's happening consistently for me on your new games in itch on Windows 10, Chrome 124.0.6367.60 (Official Build) (64-bit). Console shows the error "Uncaught (in promise) DOMException: screen.orientation.lock() is not available on this device." "

increpare commented 6 months ago

https://github.com/increpare/PuzzleScript/issues/985 was the cause = I added an optional parameter to canvasResize, which window.addEventListener('resize', passing something to