From c233e3bee7b30f7f285869d81f2e18b16b8708c2 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Fri, 13 Aug 2021 16:24:48 +0300 Subject: save hid squash value --- web/share/js/kvm/mouse.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'web/share/js/kvm') 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); }; -- cgit v1.2.3