Re: Proposal for mousewheel events

On Mon, 27 Mar 2006 21:53:51 +0200, Ian Hickson <ian@hixie.ch> wrote:
> I propose that we use "mousewheel" for vertical movement and  
> "mousewheelx" for horizontal movement, both using the same interface
> (which would be compatible with IE's implementation).

I support this proposal. Although the names are not really desirable  
having two completely different names, like mousewheel and  
horizontalwheel, is worse. This is at least consistent and builds upon  
what developers already know and use.

This is basically option (a) from ISSUE-56. As opposed to having a single  
event, this allows cancelling horizontal _or_ vertical scrolling. In  
addition, you can also be sure that it doesn't clash with existing content.

I'm not sure if the interface given in  
http://www.w3.org/mid/71BB13FE-115D-425F-9045-1BA16629D247@apple.com makes  
sense. What basically bugs is me that we would have two almost the same  
interfaces except for one attribute. If we only need .wheelDelta I'd  
suggest we consider options (a), (b) and (d) from ISSUE-55 unless someone  
has good reasons to go with a new interface instead -- duplicating most of  
what MouseEvent currently says.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Received on Monday, 27 March 2006 21:16:50 UTC