I am currently implementing a JavaScript framework. Here, I want to capture mouse and touch events on the page without other event handling being disturbed. For example: DOM: JS (with jQuery): The gesture detection is done with onStart, onMove and onEnd. The problem occurs with code such as this: This event is never executed – I would have thought that,