mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 09:10:30 +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) {
|
if (__scroll_touch_pos === null) {
|
||||||
__scroll_touch_pos = pos;
|
__scroll_touch_pos = pos;
|
||||||
} else {
|
} else {
|
||||||
let dx = pos.x - __scroll_touch_pos.x;
|
let dx = __scroll_touch_pos.x - pos.x;
|
||||||
let dy = pos.y - __scroll_touch_pos.y;
|
let dy = __scroll_touch_pos.y - pos.y;
|
||||||
if (Math.abs(dx) < 15) {
|
if (Math.abs(dx) < 15) {
|
||||||
dx = 0;
|
dx = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user