mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-07 05:38:27 +02: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);
|
||||
|
Reference in New Issue
Block a user