[Webkit-unassigned] [Bug 243924] [GTK4] Infinite loop when using the mouse wheel

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 16 17:45:28 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=243924

--- Comment #2 from Gaetan Bisson <gaetan at fenua.org> ---
To mitigate this problem I wanted to disable scroll events so I added the following to the browser code:

g_signal_connect(view, "scroll-event", G_CALLBACK(dummy_true), NULL);

Where "view" is the WebKitWebView and "dummy_true" is the following function:

gboolean dummy_true (GtkWidget *w, GdkEvent *e, void *d) {
        return TRUE;
}

To my surprise, this did not disable scroll events but instead fixed the bug altogether!

Could it be that there were two listeners for scroll events, that the buggy infinite loop was caused by them calling each other repeatedly, and that the above disabled one of them, leaving the other solely in charge of scroll events and hence fixing the bug?

I out of my depth to diagnose this further and, although I'm happy to take the above as a workaround for the time being, I would also be glad to keep investigating if told exactly how.

Thanks again for your time.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220817/37984df1/attachment.htm>


More information about the webkit-unassigned mailing list