mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-05-15 14:15:52 -06:00
The division by 120 was correct.
This commit is contained in:
parent
0a0d91b0da
commit
24ce5803d5
1 changed files with 1 additions and 1 deletions
|
|
@ -210,7 +210,7 @@ impl VirtualInput {
|
|||
PointerEvent::AxisDiscrete120 { axis, value } => {
|
||||
let axis: Axis = (axis as u32).try_into()?;
|
||||
self.pointer
|
||||
.axis_discrete(now, axis, value as f64 / 8., value);
|
||||
.axis_discrete(now, axis, value as f64 / 8., value / 120);
|
||||
self.pointer.axis_source(AxisSource::Wheel);
|
||||
self.pointer.frame();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue