We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d4f5d7 commit 2434f70Copy full SHA for 2434f70
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