This commit is contained in:
redphx
2024-12-08 20:05:29 +07:00
parent 79ebb1a817
commit de7bf3edc7
13 changed files with 34 additions and 27 deletions

View File

@@ -268,7 +268,7 @@ export class TouchController {
static setup() {
// Function for testing touch control
(window as any).testTouchLayout = (layout: any) => {
window.testTouchLayout = (layout: any) => {
const { touchLayoutManager } = window.BX_EXPOSED;
touchLayoutManager && touchLayoutManager.changeLayoutForScope({

View File

@@ -442,7 +442,7 @@ export class NavigationDialogManager {
BxEvent.dispatch(window, BxEvent.XCLOUD_DIALOG_SHOWN);
// Stop xCloud's navigation polling
(window as any).BX_EXPOSED.disableGamepadPolling = true;
window.BX_EXPOSED.disableGamepadPolling = true;
// Lock scroll bar
document.body.classList.add('bx-no-scroll');
@@ -504,7 +504,7 @@ export class NavigationDialogManager {
this.unmountCurrentDialog();
// Enable xCloud's navigation polling
(window as any).BX_EXPOSED.disableGamepadPolling = false;
window.BX_EXPOSED.disableGamepadPolling = false;
// Show the last dialog in dialogs stack
if (this.dialogsStack.length) {

View File

@@ -24,4 +24,4 @@ export function localRedirect(path: string) {
$anchor.click();
}
(window as any).localRedirect = localRedirect;
window.localRedirect = localRedirect;