Comment #3 on issue 17234 by keremonal: Cannot catch click event when
event.button==1
http://code.google.com/p/chromium/issues/detail?id=17234
My platform is Windows XP 64-bit sp2.
I tried this on Google Chrome 4.0.201.1. I can catch the left and right
clicks but
not middle click.
You wrote "Does not repro on Windows 4.0.201.1". Does that mean you
see "you clicked
middle button" alert instead of activated auto-scrolling when you click on
the middle
button?
I did not associate anything with middle-click in Control Panel in Windows.
I can catch the middle-click on Firefox.
I can alert("foo").
In other words;
My x.js is:
window.addEventListener("mousedown", function(mouseEvent) {
mouseEvent.preventDefault();// should prevent auto-scroll when
middle-click
mouseEvent.stopPropagation();
if(mouseEvent.button == 0)
alert("you clicked left button");//can see this when left-click
if(mouseEvent.button == 1)
alert("you clicked middle button");//CANNOT this when
middle-click
if(mouseEvent.button == 2)
alert("you clicked right button");//can see this when
right-click
}, false);
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---