summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
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 = [];