Failing to identify right click event in Mozilla Firefox
<p>I'm trying to add some behavior for the right click event. Weirdly I simply cannot make the event handling work.</p>

<p>This is the jQuery code:</p>

<pre><code>$('body').on('click', '#wrapper', null, function(ev){
    if (ev.which === 2 || ev.which === 3){
        alert("Here!");
    }
});
</code></pre>

<p>I think that the event is fired but it cannot be identified as a "rightclick". The alert message is never shown.
What am I doing wrong? Thanks you!</p>

<p><em>LE: I am able to identify the left click event with <code>ev.which === 1</code>. So there is no problem there.</em></p>
