Hide touchscreen using bx-offscreen instead of bx-gone

This commit is contained in:
redphx 2024-02-02 10:02:57 +07:00
parent fdbf618253
commit 966d7f2f6c

View File

@ -3434,14 +3434,12 @@ class TouchController {
}
static #show() {
document.querySelector('#BabylonCanvasContainer-main').parentElement.classList.remove('bx-gone');
// TouchController.loadCustomLayout(GAME_XBOX_TITLE_ID, TouchController.#currentLayoutId, 0);
document.querySelector('#BabylonCanvasContainer-main').parentElement.classList.remove('bx-offscreen');
TouchController.#showing = true;
}
static #hide() {
document.querySelector('#BabylonCanvasContainer-main').parentElement.classList.add('bx-gone');
// TouchController.#dispatchMessage(TouchController.#EVENT_HIDE_CONTROLLER);
document.querySelector('#BabylonCanvasContainer-main').parentElement.classList.add('bx-offscreen');
TouchController.#showing = false;
}