Preventing mouse emulation events (i.e. click) from touch events in Mobile Safari / iPhone using Javascript
Just prevent the touchend event. It will let the browser scroll the page when you touch the element but won’t let it emit artificial mouse events. element.addEventListener(‘touchend’, event => { event.preventDefault(); });