Bug Tracker

Opened 10 years ago

Closed 10 years ago

#13209 closed bug (notabug)

IE8: event.which for a left mouse click is 0, should be 1

Reported by: gavinwahl Owned by: gavinwahl
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.3
Keywords: Cc:
Blocked by: Blocking:


In IE8, event.which for a left mouse click is 0. It should be 1. (http://api.jquery.com/event.which/)

Here is a test case: http://jsfiddle.net/z5MQ8/1/

In IE8, it reports: event.which == 0, should be 1.

In chrome and firefox, it reports: event.which == 1, should be 1.

Change History (3)

comment:1 Changed 10 years ago by dmethvin

Owner: set to gavinwahl
Status: newpending

The docs seem very clear that only mousedown and mouse up are normalized. Can you confirm?

comment:2 Changed 10 years ago by gavinwahl

Status: pendingnew

Yes, mouseup/mousedown do have event.which == 1. It seems like click should be normalized too though. Is there some reason I'm missing for only normalizing mouseup/down?

comment:3 Changed 10 years ago by dmethvin

Resolution: notabug
Status: newclosed

That data isn't available in IE8. Since the docs are clear, I'll close the ticket.

Note: See TracTickets for help on using tickets.