Fix not releasing pointer lock after quitting the game

This commit is contained in:
redphx
2024-12-28 17:04:17 +07:00
parent 54e28ce350
commit 116640eb32
2 changed files with 2 additions and 2 deletions

View File

@@ -200,7 +200,7 @@ export class NativeMkbHandler extends MkbHandler {
BxEventBus.Script.off('dialog.shown', this.onDialogShown);
this.waitForMouseData(false);
document.pointerLockElement && document.exitPointerLock();
document.exitPointerLock();
}
handleMouseMove(data: MkbMouseMove): void {