1
0
Fork 0
forked from wry/wry

Revert pull request #708

This commit is contained in:
khyperia 2026-01-26 12:36:48 +01:00
parent 04680081d1
commit 1a7f15db58
2 changed files with 3 additions and 15 deletions

View file

@ -1459,11 +1459,7 @@ impl WlSeatGlobal {
if p.seat.version >= AXIS_VALUE120_SINCE_VERSION {
p.send_axis_value120(axis, delta);
} else if p.seat.version >= AXIS_DISCRETE_SINCE_VERSION {
let mut accumulator = p.v120_accumulator[i].get();
accumulator += delta;
p.send_axis_discrete(axis, accumulator / AXIS_120);
accumulator %= AXIS_120;
p.v120_accumulator[i].set(accumulator);
p.send_axis_discrete(axis, delta / AXIS_120);
}
}
if let Some(delta) = event.px[i].get() {
@ -1476,11 +1472,8 @@ impl WlSeatGlobal {
}
p.send_axis(time, axis, delta);
}
if event.stop[i].get() {
if p.seat.version >= AXIS_STOP_SINCE_VERSION {
p.send_axis_stop(time, axis);
}
p.v120_accumulator[i].set(0);
if p.seat.version >= AXIS_STOP_SINCE_VERSION && event.stop[i].get() {
p.send_axis_stop(time, axis);
}
}
if p.seat.version >= POINTER_FRAME_SINCE_VERSION {