diff options
author | Devaev Maxim <[email protected]> | 2020-11-07 05:56:00 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-11-07 05:56:00 +0300 |
commit | 8f4b943a8d697fafd932c252df574935bcb780fe (patch) | |
tree | 6814cade95769e9fd5c691e90b9c604ce626a846 /web | |
parent | b83ba7692ae96a4d1e479f48d5194c697295719a (diff) |
fixed exit pointer lock
Diffstat (limited to 'web')
-rw-r--r-- | web/share/js/kvm/mouse.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/share/js/kvm/mouse.js b/web/share/js/kvm/mouse.js index 961750c2..4f021e5c 100644 --- a/web/share/js/kvm/mouse.js +++ b/web/share/js/kvm/mouse.js @@ -72,7 +72,7 @@ export function Mouse(record_callback) { __ws = ws; $("stream-box").classList.toggle("stream-box-mouse-enabled", ws); if (!__absolute && __isRelativeCaptured()) { - $("stream-box").exitPointerLock(); + document.exitPointerLock(); } __updateOnlineLeds(); }; @@ -83,7 +83,7 @@ export function Mouse(record_callback) { state.absolute = true; } if (!__absolute && state.absolute && __isRelativeCaptured()) { - $("stream-box").exitPointerLock(); + document.exitPointerLock(); } if (__absolute && !state.absolute) { __relative_deltas = []; |