Skip to content

Commit

Permalink
libei emulation: use discrete scroll events
Browse files Browse the repository at this point in the history
  • Loading branch information
feschber committed May 3, 2024
1 parent e21ab02 commit 973360a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/emulate/libei.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 973360a

Please sign in to comment.