mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-01 02:21:53 +08:00
save hid squash value
This commit is contained in:
@@ -61,6 +61,11 @@ export function Mouse(__getResolution, __recordWsEvent) {
|
|||||||
$("stream-box").onwheel = __streamWheelHandler;
|
$("stream-box").onwheel = __streamWheelHandler;
|
||||||
$("stream-box").ontouchstart = (event) => __streamTouchMoveHandler(event);
|
$("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);
|
setInterval(__sendMove, 100);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user