2 parents 6d4f5d7 + 2434f70 commit c89df00Copy full SHA for c89df00
1 file changed
src/ifs/wl_seat/event_handling.rs
@@ -1535,7 +1535,10 @@ impl WlSeatGlobal {
1535
if p.seat.version >= AXIS_VALUE120_SINCE_VERSION {
1536
p.send_axis_value120(axis, delta);
1537
} else if p.seat.version >= AXIS_DISCRETE_SINCE_VERSION {
1538
- p.send_axis_discrete(axis, delta / AXIS_120);
+ let value = delta / AXIS_120;
1539
+ if value != 0 {
1540
+ p.send_axis_discrete(axis, value);
1541
+ }
1542
}
1543
1544
if let Some(delta) = event.px[i].get() {
0 commit comments