michaelwilhelmsen
10/3/2019 - 12:25 PM

Trigger hover on touch for mobile

Mobile hover often does not register correctly. Add this one-liner to your scripts to make touches automatically trigger a hover-event.

document.addEventListener("touchstart", function() {}, false);