mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-09-16 08:18:23 +00:00
seat: Send discrete event when axis source is scroll wheel (#6103)
modified: src/managers/SeatManager.cpp modified: src/managers/input/InputManager.cpp Co-authored-by: Agent_00Ming <agent00ming9366@gmail.com>
This commit is contained in:
@@ -298,6 +298,9 @@ void CSeatManager::sendPointerAxis(uint32_t timeMs, wl_pointer_axis axis, double
|
||||
p->sendAxisSource(source);
|
||||
p->sendAxisRelativeDirection(axis, relative);
|
||||
|
||||
if (source == 0)
|
||||
p->sendAxisDiscrete(axis, discrete);
|
||||
|
||||
if (value == 0)
|
||||
p->sendAxisStop(timeMs, axis);
|
||||
}
|
||||
|
Reference in New Issue
Block a user