After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 752917 - wayland: implement smooth scrolling in workspaces view
wayland: implement smooth scrolling in workspaces view
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: overview
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2015-07-27 11:31 UTC by Marek Chalupa
Modified: 2020-01-10 17:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
implement smooth scrolling in workspacesView (2.50 KB, patch)
2015-07-27 11:39 UTC, Marek Chalupa
none Details | Review

Description Marek Chalupa 2015-07-27 11:31:16 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.
Comment 1 Marek Chalupa 2015-07-27 11:31:47 UTC
downstream bug:

https://bugzilla.redhat.com/show_bug.cgi?id=1227622
Comment 2 Marek Chalupa 2015-07-27 11:39:25 UTC
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
Comment 3 Jasper St. Pierre (not reading bugmail) 2015-09-28 20:11:31 UTC
eh, I don't really want to hardcode this everywhere -- I'd much rather add something like this to Clutter.
Comment 4 Daniel van Vugt 2017-05-31 02:07:02 UTC
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.
Comment 5 Alexander Mikhaylenko 2019-10-21 17:19:35 UTC
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/605?