Created
June 2, 2015 19:41
-
-
Save hfknight/1ae7e6ea671012fef9cc to your computer and use it in GitHub Desktop.
EnableTouch(Active) State Support on iOS Safari
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
| window.onload = function() { | |
| if(/iP(hone|ad)/.test(window.navigator.userAgent)) { | |
| document.body.addEventListener('touchstart', function() {}, false); | |
| } | |
| }; | |
| /* or add ontouchstart="" in element attributes */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment