From 191eb4b430dace189e4e6afa77d637a232c268c6 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Wed, 14 May 2025 00:00:27 +0300 Subject: [PATCH] web: changed touch scroll direction --- web/share/js/kvm/mouse.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/share/js/kvm/mouse.js b/web/share/js/kvm/mouse.js index b19fbfd1..2f60a7c4 100644 --- a/web/share/js/kvm/mouse.js +++ b/web/share/js/kvm/mouse.js @@ -245,8 +245,8 @@ export function Mouse(__getGeometry, __recordWsEvent) { if (__scroll_touch_pos === null) { __scroll_touch_pos = pos; } else { - let dx = pos.x - __scroll_touch_pos.x; - let dy = pos.y - __scroll_touch_pos.y; + let dx = __scroll_touch_pos.x - pos.x; + let dy = __scroll_touch_pos.y - pos.y; if (Math.abs(dx) < 15) { dx = 0; }