[webkit-dev] Mouse wheel event precision

David Hyatt hyatt at apple.com
Thu Jun 10 13:13:19 PDT 2010

I think for now I'm just going to implement the "minimum line movement of 1" and only do it at the DOM event level.  That way if we use the wheel event internally (e.g., for a non-native scrollview implementation) it will still do the right thing.


On Jun 10, 2010, at 3:01 PM, Peter Kasting wrote:

> On Thu, Jun 10, 2010 at 12:26 PM, David Hyatt <hyatt at apple.com> wrote:
> There are Web sites that depend on never scrolling less than 1 wheel delta line though.  So what can we do to get the best of both worlds?
> Can we keep a count of the "total delta not yet sent to the page", and each time it overflows one wheel delta, send the number of whole wheel deltas and decrement the counter?  Or is that what you were suggesting?
> Unfortunately I don't see how we can simultaneously do this and yet still send smaller deltas for pages that support them.  Perhaps we could split "scrolling handled by WebKit" and "events sent to script on the page" and use the fine-grained data in the first and the coarse data in the second?
> PK 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20100610/abc551fc/attachment.html>

More information about the webkit-dev mailing list