fix: trackpad, reverse horizontal scroll (#8827)
Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
parent
b967d496cc
commit
baf70da2fe
@ -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;
|
||||
}
|
||||
|
||||
|
@ -1018,7 +1018,7 @@ impl<T: InvokeUiSession> Session<T> {
|
||||
}
|
||||
}
|
||||
|
||||
let (x, y) = if mask == MOUSE_TYPE_WHEEL {
|
||||
let (x, y) = if mask == MOUSE_TYPE_WHEEL || mask == MOUSE_TYPE_TRACKPAD {
|
||||
self.get_scroll_xy((x, y))
|
||||
} else {
|
||||
(x, y)
|
||||
|
Loading…
x
Reference in New Issue
Block a user