W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2008

Re: Wheel events

From: Markus Stange <me@themasta.com>
Date: Sat, 6 Dec 2008 14:16:43 +0100
Message-ID: <74acc8000812060516g1fbf4787h4dab90b207611514@mail.gmail.com>
To: "Travis Leithead" <Travis.Leithead@microsoft.com>
Cc: "olli@pettay.fi" <olli@pettay.fi>, "public-webapps@w3.org" <public-webapps@w3.org>
On Sat, Dec 6, 2008 at 1:32 AM, Travis Leithead
<Travis.Leithead@microsoft.com> wrote:
> It's a wheel. The user rolls it.

Not necessarily. On Apple Macbooks, wheel events are sent by moving
your fingers over the touchpad.

> Note, that such an
> approach effectively limits the usefulness of the actual value of rotation
> reported;


> and the actions of the web apps are generally driven by
> the number of events received, not necessarily by the "amount" of rotation,

That's true, unfortunately, and I think it's a problem we should solve
with the new events.

Let's have another look at the Macbook touchpad. This device reports
wheel events with a very high precision - pixel precision, to be
precise. Usually, scrolling about 15 pixels (or "touchpad ticks") is
equivalent to scrolling one line.

Now let's say we use degrees as the unit for the delta. My Logitech
mouse has 24 ticks per 360вк wheel rotation, so one tick would be
translated to 15 degrees. Then we can translate 1 touchpad pixel
scroll to 1 degree.

How would this affect web applications?

If the web app looks at the event's delta, everything's fine.
If the web application does not look at the delta, the result would be
that touchpad scrolling is 15 times faster than mousewheel scrolling.
That's not good.

And there's another problem: What about things that can't be scrolled
with arbitrary precision?
This is the problem that Olli referred to here:

On Wed, Oct 1, 2008 at 12:45 PM, Olli Pettay <Olli.Pettay@helsinki.fi> wrote:
> Dispatching only pixel scroll events wouldn't work because many applications
> don't want to handle small scrolling and there isn't always a good way to
> convert pixel scroll data to line scroll data.

That's why we wanted to give web apps a way to get the delta at
different precisions.

I hope I could make the background for the complexity a little clearer.

Received on Saturday, 6 December 2008 13:17:18 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:13 UTC