summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-11-07 05:56:00 +0300
committerDevaev Maxim <[email protected]>2020-11-07 05:56:00 +0300
commit8f4b943a8d697fafd932c252df574935bcb780fe (patch)
tree6814cade95769e9fd5c691e90b9c604ce626a846 /web
parentb83ba7692ae96a4d1e479f48d5194c697295719a (diff)
fixed exit pointer lock
Diffstat (limited to 'web')
-rw-r--r--web/share/js/kvm/mouse.js4
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 = [];