Bug Tracker

Modify

Ticket #11711 (closed bug: invalid)

Opened 2 years ago

Last modified 2 years ago

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

comment:1 Changed 2 years ago by sindresorhus

  • Priority changed from undecided to low
  • Resolution set to invalid
  • Status changed from new to closed
  • Component changed from unfiled to event

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 2 years ago by yan

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.