https://bugs.winehq.org/show_bug.cgi?id=49142
Bug ID: 49142 Summary: Horizontal mouse scroll events (X11 buttons 6 and 7) should not be translated to back/forward events Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winex11.drv Assignee: wine-bugs@winehq.org Reporter: muzerakascooby@gmail.com Distribution: ---
Wine translates X11 buttons 6 and 7 to back/forward events. While these historically were occasionally mapped to back/forward buttons on mice, nowadays the overwhelming standard is to use 6/7 exclusively for horizontal scrolling, and 8/9 for back and forward buttons (which wine also maps to these events). The existing behaviour makes some applications more painful than necessary to use on laptops with touchpads, as horizontal scrolling (a normally quite harmless activity) can be triggered quite easily by accident when scrolling vertically, causing back and forward events (which are considerably less harmless) to be sent.
I understand that there has only been a standard in Windows for horizontal scrolling since Vista, so I understand if implementing this is unfeasible. But horizontal scroll events should NOT be translated into back/forward events.
I believe the culprit to be mouse.c lines 77/78, 90/91, 103/104, and 116/117 (as of 7afa53c0f20aa40f0d13c81a7d20b523f62f99ab).