Skip to main content

Bug Tracker

Side navigation

#11711 closed bug (invalid)

Opened May 07, 2012 03:24AM UTC

Closed May 07, 2012 10:16AM UTC

Last modified May 07, 2012 02:27PM UTC

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

Reported by: yan <yan.2314@gmail.com> Owned by:
Priority: low Milestone: None
Component: event Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:
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/

Attachments (0)
Change History (2)

Changed May 07, 2012 10:16AM UTC by sindresorhus comment:1

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.

Changed May 07, 2012 02:27PM UTC by yan comment:2

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