fix: mouse forward back (#8705)

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou 2024-07-14 03:49:16 +08:00 committed by GitHub
parent 9adc083def
commit d18e95703e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -154,8 +154,8 @@ impl MouseControllable for Enigo {
}
},
match button {
MouseButton::Back => XBUTTON1 as u32 * WHEEL_DELTA as u32,
MouseButton::Forward => XBUTTON2 as u32 * WHEEL_DELTA as u32,
MouseButton::Back => XBUTTON1 as u32,
MouseButton::Forward => XBUTTON2 as u32,
_ => 0,
},
0,