W3C home > Mailing lists > Public > public-webapi@w3.org > June 2006

Re: ACTION-195: mousewheel proposal

From: Matthew Raymond <mattraymond@earthlink.net>
Date: Sat, 24 Jun 2006 06:15:18 -0400
Message-ID: <449D10B6.9010109@earthlink.net>
To: Jim Ley <jim@jibbering.com>
CC: "Web APIs WG (public)" <public-webapi@w3.org>

Jim Ley wrote:
> "Anne van Kesteren" <annevk@opera.com>
>> wheelDeltaX is a multiple of 120 (positive means rotated to the right, 
>> negative means rotated to the left).
> 
> Don't like this...  the 120 was presumably chosen to provide future fine 
> grained control from a more accurate device, by constraining it to 120 now, 
> we lose any future finer grainer control using Int's and instead just have a 
> strangely chosen arbitrary number.  Why not just have "distance and 
> direction" the wheel has moved, or remove this magic 120 entirely?

   My understanding is that they're trying to spec this in a way that
doesn't make existing mousewheel code written for IE incompatible.
Here's a quote from the |onmousewheel| documentation on MSDN:

| The onmousewheel event is the only event that exposes the wheelDelta
| property. This property indicates the distance that the wheel button
| has rotated, expressed in multiples of 120. A positive value indicates
| that the wheel button has rotated away from the user. A negative value
| indicates that the wheel button has rotated toward the user.
Received on Saturday, 24 June 2006 10:15:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:55 GMT