[webkit-dev] FYI: change to fake mouse events and hover updating during scroll

Ojan Vafai ojan at chromium.org
Wed Oct 24 09:03:47 PDT 2012


When you do a scroll, we fire fake mouse events and update hover state. We
currently try to throttle those events, but do very little throttling in
practice.

The patch below makes it so that we only fire a single set of fake mouse
events and only update the hover state once during a scroll. This behavior
matches Firefox and generally feels like a better user-experience to me.

In addition, this patch makes it so that we dynamically modify the
throttling rate (instead of hard-coded values) to workaround slow mouse
event handlers that make scrolling slow. In my local tests, this was a
clear win and the new code is only marginally more complicated than the old
code.

https://bugs.webkit.org/show_bug.cgi?id=99940
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20121024/d94403b2/attachment.html>


More information about the webkit-dev mailing list