GNOME Bugzilla – Bug 764595
Inverse Scrolling in Wayland Session on Charmap and Font Selection
Last modified: 2016-05-03 06:48:30 UTC
When using gucharmap 8.0.0 in a gnome wayland session both the Charmap and the Font Selection widget scroll in the wrong direction when using the mouse wheel. Other widgets like the script selector scroll in the direction set in the Gnome System Settings direction. Enabling Natural Scrolling in the Gnome System Settings inverses the scrolling behavior.
The font selection widget is just an ordinary GtkComboBox, and the chartable is just using the GtkScrolledWindow's scrolling, so if anything is wrong, it's due to gtk+. -> gtk+
Like i said other elements scroll as intended. The problem probably is how chartable implements the GtkScrollable interface, because the Character Details notebook page which is a GtkTextView in a GtkScrolledWindow scrolls correctly.
Here, it doesn't scroll with the touchpad either whereas other widgets do.
the main contents (charmap ?) doesn't scroll at all with touchpad/touchscreen here. The comboboxes and treeview behave as expeted for me, wrt to inverse scrolling
Moving back to have the charmap scrolling looked at.
> The problem probably is how > chartable implements the GtkScrollable interface GucharmapChartable just uses the value-changed signal on the GtkAdjustment, nothing special; afaik it's the GtkScrollbar/GtkScrolledWindow that's translating scroll events to adjustment changes. As for touch scrolling, I thought GtkScrolledWindow handled that itself, too.
Created attachment 327157 [details] [review] [PATCH] gucharmap: Use smooth scroll mask This seems to fix the issue with scrolling with both touchpad and mouse (direction) on Wayland here.
The fix for gucharmap is working for me. But regarding the Font Selection Widget i also tested it with the touched. The widget scrolls in the right direction with the touchpad but with rather small steps, it still does scroll in the wrong direction with my mouses wheel tough. In addition the down arrow on the Font Selection widget is off screen. I can still reach it with the cursor but it is not visible.
(In reply to Gabriel Rauter from comment #8) > The fix for gucharmap is working for me. OK, so attachment 327157 [details] [review] works for you. > But regarding the Font Selection Widget i also tested it with the touched. > The widget scrolls in the right direction with the touchpad but with rather > small steps, it still does scroll in the wrong direction with my mouses > wheel tough. In addition the down arrow on the Font Selection widget is off > screen. I can still reach it with the cursor but it is not visible. The font selection menu? That's a different issue, attachment 327157 [details] [review] doesn't change anything for that menu.
(In reply to Olivier Fourdan from comment #9) > The font selection menu? That's a different issue, attachment 327157 [details] [review] > [details] [review] doesn't change anything for that menu. Meanwhile I filed bug 765907 for that other issue with GtkMenu.
Comment on attachment 327157 [details] [review] [PATCH] gucharmap: Use smooth scroll mask Thanks!
Comment on attachment 327157 [details] [review] [PATCH] gucharmap: Use smooth scroll mask attachment 327157 [details] [review] pushed as commit cb9f96f - gucharmap: Use smooth scroll mask
Thanks, I pushed it to master, should I push it to branch gnome-3-20 as well or do you want to do it later when you'll make a new release for 3.20.x?
Fine with me to cherry-pick to 3-20 if you want to.
(In reply to Christian Persch from comment #14) > Fine with me to cherry-pick to 3-20 if you want to. Thanks! attachment 327157 [details] [review] cherry-picked as commit 4131ed2 in branch gnome-3-20