This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
I think that the type of deltaX, deltaY and deltaZ attributes of WheelEvent should be double rather than float. If they are float, the initialized values of untrusted events and the result of the attributes cannot match easily. For example: var e = new WheelEvent("wheel", { deltaX: 1/3 }); alert(e.deltaX == 1/3); The result could be false due to the fractional error. float is useful when a lot of values are stored in arrays. However, delta values are not so. So, I think that the type of delta values should be double. The example may not be a realistic situation. However, if web application developers met to this problem, they would feel strange. Currently, I'm working on implementing D3E WheelEvent on Gecko. We're using double for them. https://bugzilla.mozilla.org/show_bug.cgi?id=719320
Double is fine.
FYI, Gecko uses double already.
Fixed in revision 237: http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html?rev=1.237
nit: http://www.w3.org/TR/2012/WD-DOM-Level-3-Events-20120906/#events-WheelEvent readonly attribute double deltaX; readonly attribute double deltaY; readonly attribute double deltaZ; readonly attribute unsigned long deltaMode; The indentation is wrong. I guess that you just replaced "float" with "double". The length is increased 1 character.