mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-14 17:11:29 +03:00
libei emulation: use discrete scroll events
This commit is contained in:
@@ -157,8 +157,8 @@ impl InputEmulation for LibeiEmulation {
|
|||||||
}
|
}
|
||||||
if let Some((d, s)) = self.scroll.as_mut() {
|
if let Some((d, s)) = self.scroll.as_mut() {
|
||||||
match axis {
|
match axis {
|
||||||
0 => s.scroll(0., value as f32),
|
0 => s.scroll_discrete(0, value as i32),
|
||||||
_ => s.scroll(value as f32, 0.),
|
_ => s.scroll_discrete(value as i32, 0),
|
||||||
}
|
}
|
||||||
d.frame(self.serial, now);
|
d.frame(self.serial, now);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user