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

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)