Skip to content

Commit 4e5a663

Browse files
authored
Partially Revert "slow scrolling chrome with emulation=wlroots capture=layer-shell (#318) (#325)" (#334)
The division by 120 was correct.
1 parent 0a0d91b commit 4e5a663

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

input-emulation/src/wlroots.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ impl VirtualInput {
210210
PointerEvent::AxisDiscrete120 { axis, value } => {
211211
let axis: Axis = (axis as u32).try_into()?;
212212
self.pointer
213-
.axis_discrete(now, axis, value as f64 / 8., value);
213+
.axis_discrete(now, axis, value as f64 / 8., value / 120);
214214
self.pointer.axis_source(AxisSource::Wheel);
215215
self.pointer.frame();
216216
}

0 commit comments

Comments
 (0)