summaryrefslogtreecommitdiff
path: root/web/share
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-11-05 13:01:26 +0300
committerDevaev Maxim <[email protected]>2020-11-05 13:01:26 +0300
commitae6d8258af6a800ca2f2107290114c80e326247f (patch)
tree89f32c5e8bc01260fcd29a5f96d4a86d2c0912b0 /web/share
parentdc3259c169a4b1602ee1c7810d67aef16edd9f57 (diff)
squash relative events
Diffstat (limited to 'web/share')
-rw-r--r--web/share/js/kvm/mouse.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/share/js/kvm/mouse.js b/web/share/js/kvm/mouse.js
index 37de6226..0f7282e0 100644
--- a/web/share/js/kvm/mouse.js
+++ b/web/share/js/kvm/mouse.js
@@ -201,9 +201,9 @@ export function Mouse(record_callback) {
__sendEvent("mouse_move", {"to": to});
__sent_pos = pos;
}
- } else if (__relative_deltas) {
+ } else if (__relative_deltas.length) {
tools.debug("Mouse: relative:", __relative_deltas);
- __sendEvent("mouse_relative", {"delta": __relative_deltas});
+ __sendEvent("mouse_relative", {"delta": __relative_deltas, "squash": true});
__relative_deltas = [];
}
};