RESOLVED FIXED 207113
[GTK] Mouse wheel events on horizontal scrollbar not correctly handled when AC mode is forced
https://bugs.webkit.org/show_bug.cgi?id=207113
Summary [GTK] Mouse wheel events on horizontal scrollbar not correctly handled when A...
Carlos Garcia Campos
Reported 2020-02-03 05:53:48 PST
When scrolling with the mouse over an horizontal srollbar we invert the axis to scroll horizontally. When AC mode is forced this doesn't happen because async scrolling doesn't use EventHandler::handleWheelEvent() which is where the axis are inverted. I'm not sure this is easy to fix, we should move the axis inversion to EventDispatcher.cpp, but that's happening in a secondary thread and we would need to perform a hit test to check if the mouse is over an horizontal scrollbar.
Attachments
Patch (26.15 KB, patch)
2020-03-05 04:15 PST, Carlos Garcia Campos
no flags
Patch (19.52 KB, patch)
2020-07-30 04:16 PDT, Carlos Garcia Campos
aperez: review+
Carlos Garcia Campos
Comment 1 2020-03-05 01:35:24 PST
I've checked other browsers and they don't invert the axis when scrolling on an horizontal scrollbar, so mayb it's easier to simply stop doing so in GTK port as well. You can still use SHIFT + wheel to scroll horizontally.
Carlos Garcia Campos
Comment 2 2020-03-05 04:15:54 PST
Created attachment 392555 [details] Patch Horizontal scrolling with mouse wheel is still broken with async scrolling, but because it doesn't seem to be handling those events correctly (it doesn't work when using Shift + wheel either), so I'll file another bug.
EWS Watchlist
Comment 3 2020-03-05 04:16:56 PST
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Carlos Garcia Campos
Comment 4 2020-03-05 05:05:23 PST
Ok, it works with async scrolling, but only in the main frame (due to bug #208635) and the right/left direction is swapped (that's another bug)
Carlos Garcia Campos
Comment 5 2020-03-05 06:07:10 PST
(In reply to Carlos Garcia Campos from comment #4) > Ok, it works with async scrolling, but only in the main frame (due to bug > #208635) and the right/left direction is swapped (that's another bug) See bug #208638
Carlos Garcia Campos
Comment 6 2020-07-30 04:16:45 PDT
Adrian Perez
Comment 7 2020-07-30 07:35:54 PDT
Comment on attachment 405562 [details] Patch Really nice patch, I like it that it actually simplifies the code :)
Carlos Garcia Campos
Comment 8 2020-07-31 03:57:26 PDT
Note You need to log in before you can comment on or make changes to this bug.