Skip to main content

Bug Tracker

Side navigation

#6489 closed bug (duplicate)

Opened April 27, 2010 09:33AM UTC

Closed November 11, 2010 03:39AM UTC

Last modified November 11, 2010 03:39AM UTC

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:
Blocked by: Blocking:

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:

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.

Attachments (0)
Change History (2)

Changed November 11, 2010 03:39AM UTC by dmethvin comment:1

priority: → undecided
resolution: → duplicate
status: newclosed

Changed November 11, 2010 03:39AM UTC by dmethvin comment:2

Duplicate of #2338.