summaryrefslogtreecommitdiff
path: root/web/share/js/kvm/mouse.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/share/js/kvm/mouse.js')
-rw-r--r--web/share/js/kvm/mouse.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/web/share/js/kvm/mouse.js b/web/share/js/kvm/mouse.js
index 6babafa6..c3215d55 100644
--- a/web/share/js/kvm/mouse.js
+++ b/web/share/js/kvm/mouse.js
@@ -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);
};