GNOME Bugzilla – Bug 710849
several gtk+ widgets ignore reversed scroll direction
Last modified: 2014-09-18 12:30:00 UTC
Several Gtk+ apps are unaffected when using Xorg's evdev driver to remap mouse buttons such that the scroll wheel is reversed. Under this setting, these widgets then scroll in the opposite direction from other applications. I began to notice this in a few types of widgets from gtk 3.8, but it has become even more prevalent in 3.10. Steps to reproduce: * Open any pdf in evince 3.10.0 * enter in a terminal: $ xinput set-button-map 'Name_of_pointer_device' 1 2 3 5 4 Expected behavior: The direction of vertical scrolling reverses Observed behavior: No change in scrolling behavior. The affected widgets now scroll in the opposite direction to unaffected applications. Applications tested: evince 3.10.0: Most GUI elements are affected by this bug. evince 3.8.3: The save/open dialog and thumbnails/index sidebar are affected. The document itself is not. pavucontrol 2.0: Main scrollbar and volume sliders are affected. Menus are unaffected. zenity 3.8.0: --file-selection is affected, --calendar is not. Gtk 2 applications and non-gtk apps are unaffected (produce expected behavior). Other comments: I use a bare window manager, without most of the GNOME environment.
*** Bug 709960 has been marked as a duplicate of this bug. ***
This has to do with the more spread usage of smooth scroll events, which makes the traditional button-based scroll events ignored. xinput list <your device> will show you the scrolling axes: Class originated from: 15. Type: XIScrollClass Scroll info for Valuator 2 type: 1 (vertical) increment: -1.000000 flags: 0x2 ( preferred ) that "increment" value is what determines the directionality/scale of the axis. That value comes directly from the Vert/HorizScrollDelta configuration options, I've also seen an "Evdev Scrolling Distance" property in code, but that one doesn't seem to be fully exported through XI2 properties though :(. GTK+ has only jumped in the progress bandwagon here, I agree it must be possible to invert these values easily, but it will never be matter of changing the button map again. I suggest you to play with these configuration options and file any evdev driver bug you find on bugzilla.freedesktop.org