[Webkit-unassigned] [Bug 22382] Middle click fires onclick event

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 7 17:03:20 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=22382


Ojan Vafai <ojan at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ojan at chromium.org




--- Comment #8 from Ojan Vafai <ojan at chromium.org>  2010-05-07 17:03:17 PST ---
I did a quick bit of testing.

Gecko: Click only fires for left-click.
WebKit: Click fires for left/middle-click, but not right-click.
Trident: Click fires for left/middle-click, but not right-click and not if the
middle-click was on a link.

Not firing click events for middle-clicks is probably the only sane direction
to take things.

I tested with the following html:
<div id=foo>
<a href="http://webkit.org">middle click here</a>
... or middle click here.
</div>
<script>
document.getElementById('foo').onclick = function() {
  alert('onclick');
};
</script>

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list