Created
October 22, 2010 00:24
-
-
Save alunny/639672 to your computer and use it in GitHub Desktop.
first (very rough) stab at faking touch events
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('click', function (evt) { | |
if (typeof evt.target.ontouchend == 'function') { | |
evt.target.ontouchend.call(evt.target, evt); | |
} | |
}, false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment