<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTOURBUG - No horizontal scrolling with mouse"
href="https://bugs.freedesktop.org/show_bug.cgi?id=99554#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTOURBUG - No horizontal scrolling with mouse"
href="https://bugs.freedesktop.org/show_bug.cgi?id=99554">bug 99554</a>
from <span class="vcard"><a class="email" href="mailto:bugaevc@gmail.com" title="Sergey Bugaev <bugaevc@gmail.com>"> <span class="fn">Sergey Bugaev</span></a>
</span></b>
<pre>I've done a brief research to confirm my assumption that this behavior is not
unique to R.A.T. 7 (and so no hwdb entry is needed), and it seems to hold.
See,
* GNOME Files binds buttons 8/9 to back/forward:
<a href="https://github.com/GNOME/nautilus/blob/master/src/nautilus-window.c#L74">https://github.com/GNOME/nautilus/blob/master/src/nautilus-window.c#L74</a>
* Firefox use[sd] 6/7 for horizontal scrolling (no longer supported; deprecated
in favor of native wheel events) and 8/9 for back/forward:
<a href="https://github.com/mozilla/gecko-dev/commit/8c7fedbebdf7a8d10085ae7284dce334f1d019a8">https://github.com/mozilla/gecko-dev/commit/8c7fedbebdf7a8d10085ae7284dce334f1d019a8</a>
* Here, Olivier CrĂȘte states: "I'm attaching a simple patch that maps X mouse
buttons 8-9 to the back/forward commands. The consensus amongst GTK+ and Qt
seems to be that buttons 6-7 are for horizontal scrolling."
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=355477">https://bugzilla.mozilla.org/show_bug.cgi?id=355477</a>
These all are seemingly codes from linux/input-event-codes.h taken relative to
BUTTON_BASE, which is BTN_LEFT - 1
(<a href="https://github.com/GNOME/gtk/blob/master/gdk/wayland/gdkdevice-wayland.c#L47">https://github.com/GNOME/gtk/blob/master/gdk/wayland/gdkdevice-wayland.c#L47</a>)
and plus 4
(<a href="https://github.com/GNOME/gtk/blob/master/gdk/wayland/gdkdevice-wayland.c#L1618">https://github.com/GNOME/gtk/blob/master/gdk/wayland/gdkdevice-wayland.c#L1618</a>,
mentioning "old 4-7 scroll ones").
This leaves us with the following:
* BTN_SIDE is button 8, used for the "back" command
* BTN_EXTRA is button 9, used for the "forward" command
* BTN_FORWARD is button 10 (or 6 without +4), should mean scrolling left
* BTN_BACK is button 11 (or 7 without +4), should mean scrolling right
Have you actually tested other mice with extra buttons & wheels? How do they
behave?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>