mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-05-15 14:15:52 -06:00
libei emulation: use discrete scroll events
This commit is contained in:
parent
e21ab02a6e
commit
973360a774
1 changed files with 2 additions and 2 deletions
|
|
@ -157,8 +157,8 @@ impl InputEmulation for LibeiEmulation {
|
|||
}
|
||||
if let Some((d, s)) = self.scroll.as_mut() {
|
||||
match axis {
|
||||
0 => s.scroll(0., value as f32),
|
||||
_ => s.scroll(value as f32, 0.),
|
||||
0 => s.scroll_discrete(0, value as i32),
|
||||
_ => s.scroll_discrete(value as i32, 0),
|
||||
}
|
||||
d.frame(self.serial, now);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue