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();
});
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();
});