I have an ontouchstart event triggered on my mobile view, its linked to this:
function mobileLinksShow() {
document.querySelector(\'.mobile-head
Using e.preventDefault() for touch events is not working by default start from chrome 56.
You can let it work manually by setting the { passive: false } option:
document.querySelector('mobile-head-bar-left')
.addEventListener(
'touchstart',
function(e) {
// do something
e.preventDefault()
},
{ passive: false }
)