Bug Tracker

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#11711 closed bug (invalid)

Can't get event.detail of DOMMouseScroll event in firefox

Reported by: yan <[email protected]…> Owned by:
Priority: low Milestone: None
Component: event Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:


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.


Change History (2)

comment:1 Changed 11 years ago by sindresorhus

Component: unfiledevent
Priority: undecidedlow
Resolution: invalid
Status: newclosed

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.

comment:2 Changed 11 years ago by yan

Thx.Firefox dosn't have mousewheel event so I have to use DOMMouseScroll event instead.

Note: See TracTickets for help on using tickets.