marklovers / kaplay

🦖 A JavaScript game library
https://kaplayjs.com
MIT License
248 stars 17 forks source link

fix: full screen judgment #117

Closed luluxia closed 1 month ago

luluxia commented 1 month ago

The isFullscreen() function gets the fullscreen DOM object, but doesn't determine if it's the game canvas or not. When the letterbox option is set in the game, going fullscreen on the entire web page will result in the game canvas size changing, but the game resolution not updating, so I've changed the isFullscreen() function to work around this issue.