Chrome fires a contextmenu
event, yet no click
event for right-clicks. Firefox fires both.
I'm trying to find some official reference or explanation, and I'm surprised I've never come across this yet.
http://jsbin.com/zawifokumu/1/edit?js,console,output
document.addEventListener('click', function(event) {
console.log('click');
});
document.addEventListener('contextmenu', function(event) {
console.log('right click');
});
document.addEventListener('mousedown', function(event) {
console.log('mousedown');
});
It appears that the Firefox people think this is a bug. But not a very important bug, judging from the fact that it's 14 years old now.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With