Skip to content

Commit 191eb4b

Browse files
committed
web: changed touch scroll direction
1 parent ac240e1 commit 191eb4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/share/js/kvm/mouse.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,8 @@ export function Mouse(__getGeometry, __recordWsEvent) {
245245
if (__scroll_touch_pos === null) {
246246
__scroll_touch_pos = pos;
247247
} else {
248-
let dx = pos.x - __scroll_touch_pos.x;
249-
let dy = pos.y - __scroll_touch_pos.y;
248+
let dx = __scroll_touch_pos.x - pos.x;
249+
let dy = __scroll_touch_pos.y - pos.y;
250250
if (Math.abs(dx) < 15) {
251251
dx = 0;
252252
}

0 commit comments

Comments
 (0)