diff options
| author | Agent00Ming <107314235+Agent00Ming@users.noreply.github.com> | 2024-05-16 08:30:55 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-16 13:30:55 +0100 |
| commit | 3ac0e7ead1434c172f276a12f81da1eeb0dc4491 (patch) | |
| tree | deda81bdf425b5147c74b5e49597c4be6ac12a7c /src/managers/input/InputManager.cpp | |
| parent | d693c448366131de9e5729690a6d894fd1adff5e (diff) | |
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>
Diffstat (limited to 'src/managers/input/InputManager.cpp')
| -rw-r--r-- | src/managers/input/InputManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index 02072229..58e5ad17 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -774,7 +774,7 @@ void CInputManager::onMouseWheel(IPointer::SAxisEvent e) { } } - g_pSeatManager->sendPointerAxis(e.timeMs, e.axis, factor * e.delta, std::round(factor * e.deltaDiscrete), e.source, WL_POINTER_AXIS_RELATIVE_DIRECTION_IDENTICAL); + g_pSeatManager->sendPointerAxis(e.timeMs, e.axis, factor * e.delta, std::round(factor * e.deltaDiscrete / 120), e.source, WL_POINTER_AXIS_RELATIVE_DIRECTION_IDENTICAL); } Vector2D CInputManager::getMouseCoordsInternal() { |
