RESOLVED FIXED 156834
[GTK] WebKitWebView should propagate wheel events not handled by the web process
https://bugs.webkit.org/show_bug.cgi?id=156834
Summary [GTK] WebKitWebView should propagate wheel events not handled by the web process
Carlos Garcia Campos
Reported 2016-04-21 00:51:17 PDT
We are currently swallowing all wheel events unconditionally, not allowing applications to handle wheel events when not handled by us. Since the GTK+ event propagation system is synchronous, and our events are handled asynchronously, we need to do something similar to what we do for key events, not propagate the vent the first time and if not handled by the web process, re-inject it in the event loop and then just propagate it.
Attachments
Patch (8.80 KB, patch)
2016-04-21 00:56 PDT, Carlos Garcia Campos
zan: review+
Carlos Garcia Campos
Comment 1 2016-04-21 00:56:18 PDT
Zan Dobersek
Comment 2 2016-04-21 03:37:15 PDT
Comment on attachment 276901 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=276901&action=review > Source/WebKit2/UIProcess/API/gtk/WebKitWebViewBase.cpp:857 > + if (priv->shouldForwardNextWheelEvent) { std::exchange() > Source/WebKit2/UIProcess/API/gtk/WebKitWebViewBase.cpp:863 > - return TRUE; > + return FALSE; Intended?
Carlos Garcia Campos
Comment 3 2016-04-21 03:43:18 PDT
(In reply to comment #2) > Comment on attachment 276901 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=276901&action=review > > > Source/WebKit2/UIProcess/API/gtk/WebKitWebViewBase.cpp:857 > > + if (priv->shouldForwardNextWheelEvent) { > > std::exchange() > > > Source/WebKit2/UIProcess/API/gtk/WebKitWebViewBase.cpp:863 > > - return TRUE; > > + return FALSE; > > Intended? Yes, because the web view is never scrollable when the auth dialog is present, we want to propagate the event to allow apps to handle it.
Carlos Garcia Campos
Comment 4 2016-04-21 03:50:51 PDT
Note You need to log in before you can comment on or make changes to this bug.