title: how to prevent popup window on right mouse click
body: <p>So as the title says how could i do it?</p>
  
  <p>After some googling i got this code together:</p>
  
  <pre><code>$('.lines').mousedown(function(event) {
      if(event.which == 1){
          console.log("left");
      }else{
          event.preventDefault();
          console.log("right");
      }
  });
  </code></pre>
  
  <p>So first i need to determine which button was pushed because i'm going to use different action. but <code>event.preventDefault</code> for some reason doesn't do it's job when right mouse button is clicked.</p>