Created
October 3, 2019 12:25
-
-
Save michaelwilhelmsen/5a7990916dd3904df4e602bff574b150 to your computer and use it in GitHub Desktop.
Mobile hover often does not register correctly. Add this one-liner to your scripts to make touches automatically trigger a hover-event.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.addEventListener("touchstart", function() {}, false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment