Bug Tracker

Modify

Ticket #6489 (closed bug: duplicate)

Opened 3 years ago

Last modified 3 years ago

e.which not working correctly in Internet Explorer

Reported by: kayahr Owned by:
Priority: undecided Milestone: 1.4.2
Component: event Version: 1.4.2
Keywords: IE Cc:
Blocking: Blocked by:

Description

In mouse events jQuery does not translate the mouse button index correctly into the e.which property in Internet Explorer. It works when only one button is pressed at once but it fails when you press multiple buttons.

You can watch the bug in this demo:  http://www.ailis.de/~k/permdata/20100427/whichbug/

Press down the left mouse button (Somewhere in the page), then press the right mouse button, then release the mouse left mouse button and then release the right mouse button. Do this in Firefox and you will see that the log output is correct. Do it in IE and you see that the mousedown of the right mouse button is reported as a mousedown of the left mouse button. But the mouseup events are correct in this example. The same can be reproduces with the middle mouse button.

Change History

comment:1 Changed 3 years ago by dmethvin

  • Priority set to undecided
  • Status changed from new to closed
  • Resolution set to duplicate

comment:2 Changed 3 years ago by dmethvin

Duplicate of #2338.

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.