title: How to cancel next event calls?
body: <p>I have an event "pointerdown" but I want it to cancel the event call when a certain condition is met in one of the callbacks. So, all the next callbacks should not be called.</p>
  
  <p>I have tried evt.preventDefault(); but that does not work, I have also tried evt.stopPropagation(); but that does not work.</p>
  
  <pre><code>const pointer = getMousePos(evt);
  if (inBounds(pointer)) {
      evt.preventDefault();
      evt.stopPropagation();
  }
  </code></pre>
  
  <p>The inBounds function returns true as expected, but the next callbacks of the event are still called. This event is added first, before the other events I wish to cancel but they are not.</p>