mootools/mootools-core — Issue #2242: "DOMEvent" and "mousewheel" event
Author: ibolmo
Created: 2012-01-19 10:18:31+00:00
State: open
Labels: bug

(from [Lighthouse](https://mootools.lighthouseapp.com/projects/2706/tickets/1263-domevent-and-mousewheel-event))

Tested on Firefox 6.0.2

"wheel" property of DOMEvent object is not instantiated when "mousewheel" event is thrown.

There is a missing condition in DOMEvent object :

``` javascript
} else if (type == 'click' || type == 'dblclick' || type == 'contextmenu' || type.indexOf('mouse') == 0){
```

should be replaced by

``` javascript
} else if (type == 'click' || type == 'dblclick' || type == 'contextmenu' || type.indexOf('mouse') == 0 || type == 'DOMMouseScroll'){
```

----

(from [comment](https://mootools.lighthouseapp.com/projects/2706/tickets/1263-domevent-and-mousewheel-event#ticket-1263-2))

For test :
http://jsfiddle.net/8ADWe/1/