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

RE: Proposal for mousewheel events

From: Doug Schepers <doug@schepers.cc>
Date: Tue, 11 Apr 2006 16:18:34 -0400
To: <public-webapi@w3.org>
Message-Id: <20060411201836.BD19719585B@plunder.dreamhost.com>

Oops... I submitted an alternate multiple-device proposal before I read
Stéphane's. Looks like we were thinking similar things, but he went a bit
farther.

Regards-
Doug
 

Doug Schepers wrote:
| 
| A related idea is to indicate which wheel this is, on a 
| device with multiple
| wheels. I think that this could be captured in a similar way as e.g.
| "click.button", with a "event.device". "device" would be a 
| enumeration of
| the connected devices (0 for the primary device, 1 for the 
| secondary, etc.) 
| 
| So, you would have:
|  event.x.details
|  event.y.details
|  event.x.wheelDelta
|  event.y.wheelDelta
|  event.device
| 
| You would also have booleans for altKey, ctrlKey, metaKey, 
| and shiftKey, as
| Maciej suggested. It might also be nice to have "target" 
| exposed so that if
| the wheel *is* attached to the pointer device, you could grab 
| the currently
| focused object to receive the events.
| 
| Regards-
| Doug
Received on Tuesday, 11 April 2006 20:20:03 GMT

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