W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2010

DOM Level 3 Events and the wheel event

From: David Flanagan <david@davidflanagan.com>
Date: Wed, 13 Oct 2010 14:36:53 -0700
Message-ID: <4CB62675.2040105@davidflanagan.com>
To: www-dom@w3.org
The current Editor's draft includes the following formulas for 
converting wheel events to mousewheel and DOMMouseScroll events:

mousewheel.wheelDelta = -(WheelEvent.deltaY) / 120

DOMMouseScroll.detail = WheelEvent.deltaY / 3


Shouldn't those division signs be multiplication signs?  Everything I 
read says that IE returns a wheelDelta of +120 or -120 for a single 
wheel "click", and that Firefox returns a detail field of plus or minus 3.

	David Flanagan
Received on Wednesday, 13 October 2010 21:37:38 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:39 UTC