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).
https://bugs.winehq.org/show_bug.cgi?id=49142
--- Comment #1 from Murray Colpman muzerakascooby@gmail.com --- This looked easier than I thought it might be so I wrote a quick patch. I've tested it in an old version of Firefox (30.0; I happened to already have it installed in a prefix); the old behaviour was to go back and forward in history, the new behaviour is to scroll horizontally. I've submitted it to wine-devel here https://www.winehq.org/pipermail/wine-devel/2020-May/166087.html (sorry, I couldn't get git send-email to work, and I'm not sure but I think Thunderbird might have done something weird with the attachment...)
https://bugs.winehq.org/show_bug.cgi?id=49142
Murray Colpman muzerakascooby@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #2 from Murray Colpman muzerakascooby@gmail.com --- https://source.winehq.org/git/wine.git/commit/893080e4df5a45929320ebb88b8668...
https://bugs.winehq.org/show_bug.cgi?id=49142
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |5.8 Fixed by SHA1| |893080e4df5a45929320ebb88b8 | |668eea316476c
https://bugs.winehq.org/show_bug.cgi?id=49142
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 5.9.
https://bugs.winehq.org/show_bug.cgi?id=49142
--- Comment #4 from Michael Stefaniuc mstefani@winehq.org --- Removing the 5.0.x milestone from bug fixes included in 5.0.2.