Modify ↓
Ticket #11711 (closed bug: invalid)
Can't get event.detail of DOMMouseScroll event in firefox
| Reported by: | yan <yan.2314@…> | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | None |
| Component: | event | Version: | 1.7.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
I bind an event via jquery v1.7+ on a DOMMouseScroll event in firefox but can't get event.detail,while via addEventListener() and jquery v1.6.4- the result is what it's supposed to be.
Some days ago I asked here https://forum.jquery.com/topic/a-bug-dommousescroll-event-of-firefox ,but got no answer.
TestCase:http://jsfiddle.net/snDUq/
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

The DOMMouseScroll event is a Firefox only event. The property is not copied over to the jQuery event object.
You can still access it using e.originalEvent.detail
But I would strongly suggest you use the standardized 'mousewheel' event instead.