title: Defer, debounce or timeout an event
body: <p>I have two events</p>
  
  <pre><code>cy.on('mousedown touchstart', 'node', function (event) {
    // start
  });
  
  cy.on('mouseover tapdragover', 'node', function (event) {
    // end
  });
  </code></pre>
  
  <p>The problem is that the second event is almost immediately fired since the first event was fired when the mouse is being pressed on a node and the second is fired when the mouse is over a node.</p>
  
  <p>Is it possible to <code>debounce</code> or <code>defer</code> the action? I know the syntax is <code>cytoscape.js</code>-specific, but I guess the regular possibilities of using <code>debounce</code> and <code>defer</code> apply.</p>
  
  <p>I guess an easy solution would be to save a timestamp in the first event and check if <code>endTime - startTime &gt; threshold</code> in the second event.</p>