seat: fix double scrolling in some applications (#8583)

This commit is contained in:
Ikalco
2024-11-26 07:52:43 -06:00
committed by GitHub
parent 2687788236
commit 1fb720b62a
3 changed files with 9 additions and 2 deletions

View File

@@ -332,8 +332,10 @@ void CSeatManager::sendPointerAxis(uint32_t timeMs, wl_pointer_axis axis, double
p->sendAxisRelativeDirection(axis, relative);
if (source == 0) {
p->sendAxisValue120(axis, value120);
p->sendAxisDiscrete(axis, discrete);
if (p->version() >= 8)
p->sendAxisValue120(axis, value120);
else
p->sendAxisDiscrete(axis, discrete);
} else if (value == 0)
p->sendAxisStop(timeMs, axis);
}