diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/share/js/kvm/mouse.js | 4 |
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 = []; } }; |