GNOME Bugzilla – Bug 752917
wayland: implement smooth scrolling in workspaces view
Last modified: 2020-01-10 17:47:44 UTC
When in overview mode under wayland, scrolling to switch workspace (using some devices) does not work. This is because these devices send smooth scrolling events, instead of scroll up/down.
downstream bug: https://bugzilla.redhat.com/show_bug.cgi?id=1227622
Created attachment 308209 [details] [review] implement smooth scrolling in workspacesView I don't know if there are any heuristics on how to transform smooth scrolling into discrete up/down so that it feels natural, but this feels similar to what I experience under X
eh, I don't really want to hardcode this everywhere -- I'd much rather add something like this to Clutter.
The conversion I've seen generally used is: * 15.0 for a mouse wheel tick (historically also sent as button 4/5) * Proportionally smaller float values for touchpad scrolling This results in a single consistent interface (one float) for scrolling with either mice or smoothly via touchpads. So the heuristic for doing the opposite would be to accumulate scroll values and emit discrete events whenever a multiple of 15.0 (or whatever) is crossed.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/605?