
On X11, the scroll handler can receive smooth events, which should trigger a workspace switch. Handle smooth events by checking their scroll delta, and adjusting the direction depending on these deltas. Fixes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1614 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1603>