mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 17:20:30 +08:00
save hid squash value
This commit is contained in:
parent
551e0a5598
commit
c233e3bee7
@ -61,6 +61,11 @@ export function Mouse(__getResolution, __recordWsEvent) {
|
||||
$("stream-box").onwheel = __streamWheelHandler;
|
||||
$("stream-box").ontouchstart = (event) => __streamTouchMoveHandler(event);
|
||||
|
||||
$("hid-mouse-squash-switch").checked = tools.storage.getBool("hid.mouse.squash", true);
|
||||
tools.el.setOnClick($("hid-mouse-squash-switch"), function() {
|
||||
tools.storage.setBool("hid.mouse.squash", $("hid-mouse-squash-switch").checked);
|
||||
}, false);
|
||||
|
||||
setInterval(__sendMove, 100);
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user