mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
web: changed touch scroll direction
This commit is contained in:
parent
ac240e141b
commit
191eb4b430
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user