Ticket #12079 (closed bug: worksforme)
[Click From Right] Event "click" is execute, when push right mouse button
| Reported by: | alexei03a@… | Owned by: | alexei03a@… |
|---|---|---|---|
| Priority: | blocker | Milestone: | 1.8 |
| Component: | event | Version: | 1.8b2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Is bad working.
Change History
comment:1 Changed 11 months ago by dmethvin
- Owner set to alexei03a@…
- Status changed from new to pending
comment:3 Changed 11 months ago by dmethvin
- Priority changed from undecided to blocker
- Status changed from pending to open
- Component changed from unfiled to event
- Milestone changed from None to 1.8
I don't see the problem in Chrome or IE9, but I do in Firefox. This is a regression we need to fix.
comment:4 Changed 10 months ago by dmethvin
- Status changed from open to closed
- Resolution set to worksforme
Nope, this is *not* a regression, it has worked this way from the beginning of jQuery. Firefox generates a click event on the document for right clicks whereas most other browsers do not. You can check event.which to see what button is pressed.
If you are using .delegate() or .on() for delegated events, we filter out right clicks since they aren't fired in the directly bound case. However, we don't try to hide right clicks on the document.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket.
Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to get started.