<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Trackball wheel emulation interferes with dragging"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=89993">89993</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Trackball wheel emulation interferes with dragging
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Wayland
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>libinput
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>wayland-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>chais.z3r0@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I'm not sure if this is the right place for this bug. I was pointed here by
someone in #gnome-shell.

My setup:
Gnome 3.16 on Xorg with a Logitech Marble Mouse Trackball.

The problem:
The Marble Mouse has 4 buttons and a trackball, no scrollwheel. I always
emulated scrolling with this xorg.conf:

Section "InputClass"
    Identifier    "Marble Mouse"
    MatchProduct    "Logitech USB Trackball"
    Option        "EmulateWheelButton" "8"
    Option        "EmulateWheel" "true"
    Option        "XAxisMapping" "6 7"
    Option        "Emulate3Buttons" "on"
    Option        "Emulate3Timeout" "1000"
EndSection

So the small left button initiates scrolling when held down or just sends a
keycode when clicked. I use it for backwards navigation in the browser.
When I updated Gnome to 3.16 I couldn't use the scrolling and noticed a 1
second delay between pressing a mouse button and the corresponding ButtonPress
event.
After some googling I found I can get the scrolling back by issuing

`gsettings set org.gnome.desktop.peripherals.trackball
scroll-wheel-emulation-button 8`

So Gnome chooses to ignore the xorg.conf for some reason.
I got the drag working properly by installing xf86-input-libinput. But then the
scrolling ceases to work.
So I can currently choose between drag'n'drop working as expected and scrolling
working as configured.
I tried creating an xorg.conf using the libinput settings (ScrollMethod and
ScrollButton) which lead to X not restarting properly.

TL;DR version:
xorg.conf -> no scrolling, ButtonPress delayed
xorg.conf + gsetting -> scrolling, ButtonPress delayed
xorg.conf + gsetting + libinput for X -> no scrolling, ButtonPress instant</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>