mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 09:01:54 +08:00
fixed exit pointer lock
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user