fix: trackpad, reverse horizontal scroll (#8827)

Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
dignow authored and GitHub committed 2024-07-25 14:44:58 +08:00
1 parent b967d496cc
commit baf70da2fe
2 files changed
+2 -3

No files matched your search

+1 -2
View File
@@ -973,12 +973,11 @@ pub fn handle_mouse_(evt: &MouseEvent, conn: i32) {
},
MOUSE_TYPE_WHEEL | MOUSE_TYPE_TRACKPAD => {
#[allow(unused_mut)]
let mut x = evt.x;
let mut x = -evt.x;
#[allow(unused_mut)]
let mut y = evt.y;
#[cfg(not(windows))]
{
x = -x;
y = -y;
}