Merge pull request #100638 from Tiktalik/fixed-wayland-horizontal-scroll

Fix Wayland left/right scroll wheel issues.
This commit is contained in:
Rémi Verschelde 2024-12-20 23:57:16 +01:00
commit 13274842a9
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -1794,7 +1794,7 @@ void WaylandThread::_wl_pointer_on_axis_discrete(void *data, struct wl_pointer *
pd.discrete_scroll_vector_120.y = discrete * 120;
}
if (axis == WL_POINTER_AXIS_VERTICAL_SCROLL) {
if (axis == WL_POINTER_AXIS_HORIZONTAL_SCROLL) {
pd.discrete_scroll_vector_120.x = discrete * 120;
}
}
@ -1815,7 +1815,7 @@ void WaylandThread::_wl_pointer_on_axis_value120(void *data, struct wl_pointer *
pd.discrete_scroll_vector_120.y += value120;
}
if (axis == WL_POINTER_AXIS_VERTICAL_SCROLL) {
if (axis == WL_POINTER_AXIS_HORIZONTAL_SCROLL) {
pd.discrete_scroll_vector_120.x += value120;
}
}