I’m happy with how HTML5-build is mobile responsive.
However, I still have one question about scaling.
I’m using JS to allow the user to enable fullscreen mode on a mobile phone
if (!document.fullscreenElement) {
document.documentElement.requestFullscreen();
} else if (document.exitFullscreen) {
document.exitFullscreen();
}
However, this completely confuses the position and size of all objects on the page in a mobile browser.
The tips listed here don’t help (including forced use of the onResize() method):
Can someone explain what should be done?