mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-11-08 18:04:03 +01:00
Fix not releasing pointer lock after quitting the game
This commit is contained in:
@@ -557,7 +557,7 @@ export class EmulatedMkbHandler extends MkbHandler {
|
||||
this.stop();
|
||||
|
||||
this.waitForMouseData(false);
|
||||
document.pointerLockElement && document.exitPointerLock();
|
||||
document.exitPointerLock();
|
||||
|
||||
window.removeEventListener('keydown', this.onKeyboardEvent);
|
||||
window.removeEventListener('keyup', this.onKeyboardEvent);
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user