Opened 9 years ago

Closed 6 years ago

#17092 closed defect (patchwelcome)

mousewheel event not working in Firefox 20

Reported by: spaquette Owned by: Kris Zyp
Priority: undecided Milestone: 1.13
Component: Events Version: 1.9.0rc2
Keywords: Cc:
Blocked By: Blocking:


If I use dojo/on to attach an event for mousewheel, it won't work for Firefox. I have to explicitly attach an event for DOMMouseScroll to get an event to work in Firefox.

In this super simple test, if you scrollwheel over the DIV, the console will show "mousewheel!" in Chrome and IE, but only "DOMMouseScroll!" in Firefox (each message is attached to the appropriate event).

I haven't confirmed if older Dojo releases and/or older Firefoxes are having the same issue. Searching the bugs seemed to suggest this was intended to be normalized, but I'm not sure if it was left separate on purpose.

Attachments (1)

test_ff_mousewheel.html (1.2 KB) - added by spaquette 9 years ago.
Firefox Mousewheel Test

Download all attachments as: .zip

Change History (4)

Changed 9 years ago by spaquette

Attachment: test_ff_mousewheel.html added

Firefox Mousewheel Test

comment:1 Changed 9 years ago by spaquette

Since I know OS can matter: It's happening on Windows 7 64-bit, don't have access to another OS to try.

comment:2 Changed 9 years ago by spaquette

I dug at this some more, and came up with this.

  • Firefox will support wheel and DOMMouseScroll, but not mousewheel.
  • Chrome will support mousewheel, but not wheel nor DOMMouseScroll.
  • IE9 supports wheel. (Unsure about the other two.)
  • IE8 supports mousewheel in a haphazard manner, but not wheel nor DOMMouseScroll.

I'm not sure it makes sense to have mousewheel and wheel work for one another, but if that's not done, to get multibrowser support at least 2 event handlers have to be set up to deal with the Chrome/FF difference.

Last edited 9 years ago by spaquette (previous) (diff)

comment:3 Changed 6 years ago by dylan

Milestone: tbd1.12
Resolution: patchwelcome
Status: newclosed

Given that no one has shown interest in creating a patch in more than 3 years, I'm closing this as patchwelcome. Please let us know if you would like to get involved in helping make this change to Dojo!

Note: See TracTickets for help on using tickets.