title: Check if click was triggered by touch or click
body: <p>I have function that works on click</p>
  
  <pre><code>$('#test').click(function(e){
    // some code
  });
  </code></pre>
  
  <p>How can I check if the <code>test</code> element clicked or touched?</p>