How to stop event propagation in Hammer.js (2.0.2)? The technique used in the relevant test (https://github.com/hammerjs/hammer.js/blob/master/tests/unit/test_propagation.js) does not apply to all type of events. If you replace the 'tap' event with a 'press' one, the test fails.
In your parent element check what the event.target is. If it is not the parent element and is set to the child then ignore the event.
eg: if(event.target != parent){ return; }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With