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

Re: Proposal for mousewheel events

From: Anne van Kesteren <annevk@opera.com>
Date: Mon, 27 Mar 2006 23:16:35 +0200
To: "Web APIs WG (public)" <public-webapi@w3.org>
Message-ID: <op.s63b1xrn64w2qv@id-c0020.oslo.opera.com>

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
Received on Monday, 27 March 2006 21:16:50 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:20 UTC