子のイベントが実行されると親イベントを回避する方法。ここでは、コードを使用すると、イベントを変更しようとしたことがありますが、Internet Explorerの場合、あなたの子供のイベントハンドラ子要素のイベントのデフォルトを防止する
event.stopPropagation()
でこれを試すことができ
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);