[Webkit-unassigned] [Bug 258926] [GTK4] Scrolling with high-res mouse wheel is slow/laggy due to smooth scrolling.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 14 08:16:46 PDT 2023


--- Comment #3 from Calvin Walton <calvin.walton at kepstin.ca> ---
Looking at the Gtk4 EventControllerScroll stuff, I don't think there is any way at that level to directly distinguish whether or not a scroll event was from a high-res wheel.

Indirectly, you can figure it out because if the scroll signal handler is called with WHEEL units and the delta value is not an integer, then that event must have been caused by a high res wheel.

But I think Gtk accumulates multiple scroll events that happen in a single frame and emits the scroll signal once; it's possible that they could add up to an integer value.
Also, since it's still discrete events and not a continuous scroll with begin/end you can have weird cases like someone scrolling with two mouse wheels simultaneously, one high res and one not, and the resulting scroll events you get from Gtk will have them mixed together.

I think this reinforces my opinion that smooth scrolling should be disabled for all wheel events, at least on Gtk4.

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/20230714/67193a84/attachment.htm>

More information about the webkit-unassigned mailing list