How to prevent parent event if child’s event is executed. Here is the code see the comments
document.addEventListener('touchend', function (e) {
//Do something here
}, false);
someChildElement.addEventListener('touchend', function (e) {
//Do something here
//if this code block is executed then do-not execute the touchend event of document//
}, false);
You can try this in your child event handler
For Internet Explorer, you should use