mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-09-15 15:58:29 +00:00
input: Emulate discrete scrolling from v120 events (#6881)
* seat: avoid sending axis_stop() when source is wheel * fix rounding for absolute discrete values greater than 1 Co-authored-by: Agent_00Ming <agent00ming9366@gmail.com>
This commit is contained in:
@@ -333,9 +333,7 @@ void CSeatManager::sendPointerAxis(uint32_t timeMs, wl_pointer_axis axis, double
|
||||
if (source == 0) {
|
||||
p->sendAxisValue120(axis, value120);
|
||||
p->sendAxisDiscrete(axis, discrete);
|
||||
}
|
||||
|
||||
if (value == 0)
|
||||
} else if (value == 0)
|
||||
p->sendAxisStop(timeMs, axis);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user