"DOMEvent" and "mousewheel" event #2242

Closed
ibolmo opened this Issue Jan 19, 2012 · 1 comment

Comments

Projects
None yet
2 participants
Owner

ibolmo commented Jan 19, 2012

(from Lighthouse)

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 :

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

should be replaced by

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

(from comment)

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

Owner

arian commented Jan 19, 2012

This was already fixed in 3fc253e

@arian arian closed this Jan 19, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment