PDA

View Full Version : [OPEN] [EXTJSIV-2538][4.0.2] Problem in addListener with "mousewheel" event



zumpiez
17 Jun 2011, 11:05 AM
(I'm doing this in IE9 set to IE8 compatibility mode)

I'm calling addListener for mousewheel, and it's normalizing the event name to DOMMouseScroll. My understanding is that DOMMouseScroll is specific to Gecko and that Webkit and IE use onmousewheel as the event name. Needless to say, my event handler isn't being called.

Here's the code in Ext

normalizeEvent: function(eventName, fn){
if (/mouseenter|mouseleave/.test(eventName) && !Ext.supports.MouseEnterLeave) {
if (fn) {
fn = Ext.Function.createInterceptor(fn, this.contains, this);
}
eventName = eventName == 'mouseenter' ? 'mouseover' : 'mouseout';
} else if (eventName == 'mousewheel' && !Ext.supports.MouseWheel && !Ext.isOpera){
eventName = 'DOMMouseScroll';
}
return {
eventName: eventName,
fn: fn
};
},

mike.estes
17 Jun 2011, 2:35 PM
Thanks you for the report, filed as EXTJSIV-2538

zumpiez
20 Jun 2011, 1:52 PM
Thanks Mike. Do you guys have an issue tracker or anything so I can keep an eye on this one?