title: Check is tap or hover event - jQuery
body: <p>I have this code, which adds class <code>active</code> when another element is hovered:</p>
  
  <pre><code>$(document).on('mouseenter', '.hover-cont', function(e) {
  
      if($(window).width() &lt;= 776) return false;
          e.preventDefault();
          .....addClass('active');
          return false;
      });
  });
  </code></pre>
  
  <p>The problem is that, the hover event is triggered and on <code>tap</code> mobile event, but I have click event for the same element which triggers another logic.</p>
  
  <p>For now, I am using <code>$(window).width() &lt;= 776)</code>, but is there a way to check, which type of event is fired ?</p>
  
  <p>EDIT:
  The click event:</p>
  
  <pre><code>$(document).on('click', '.click-el', function(e) {
      e.preventDefault();
      // do some logic
  
      return false;
  });
  </code></pre>