Fix for Samsung 10.4" Tablets to work in mobile mode.
Hi, I was struggling to make the mobile interface work in a 10.4" tablet with innerWidth 800 pixels..
so I changed the "mobile-improvements/src/mobile-improvements.ts" file, to set the function "static viewResize ()" to handle this size of window with an <= in this line: "if (window.innerWidth <= 800) { "
Other sugestion is to make the option "Show Mobile Mode toggle" as a world option (GM only), because the Save Changes button disappear when using the tablet, and i couldn't set it to enable the module.
static viewResize() {
if (MobileMode.enabled) viewHeight();
if (game.settings && getSetting(settings.PIN_MOBILE_MODE))
return MobileMode.enter();
if (localStorage.getItem("mobile-improvements.pinMobileMode") === "true")
return MobileMode.enter();
if (window.innerWidth <= 800) {
MobileMode.enter();
} else {
MobileMode.leave();
}
}
}
Maybe it help in most big screen tablets..