Next code logs the fired events on window object (FIDDLE):
var logEvent = (function() {
var count = 1,
    timer = 0,
    buffer = function() {
        clearTimeout(timer)
        timer = setTimeout(function() {
            count++
        }, 30)
    }
return function(type, e) {
    buffer();
    console.log(count + '. ------- ' + type + ' ------')
    console.log('type:   ' + e.type)
    console.log('button: ' + e.button)
    console.log('detail: ' + e.detail)
}
})()
window.addEventListener('click', function(e) {
logEvent('CLICK', e)
})
window.addEventListener('contextmenu', function(e) {
logEvent('CONTEXTMENU', e)
})<body>
<div>
    Click here
</div>
</body>for Firefox 54.0.1
  1. ------- CLICK ------
  type:   click
  button: 2
  detail: 1
  1. ------- CONTEXTMENU ------
  type:   contextmenu
  button: 2
  detail: 1
for Chrome 62.0.3165.0
  1. ------- CONTEXTMENU ------
  type:   contextmenu
  button: 2
  detail: 0
I don't know what's going on with Firefox, maybe browsers or operational systems configuration configured improperly. Did you have same problems, how can I fix it?
 
     
    