Last active
February 10, 2017 21:32
-
-
Save VoloshchenkoAl/45eb4d5f3aa2bafabed772fecbd3ac76 to your computer and use it in GitHub Desktop.
This file contains 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
blah.addEventListener('touchend', function(e) { | |
/* prevent delay and simulated mouse events */ | |
e.preventDefault(); | |
/* trigger the actual behavior we bound to the 'click' event */ | |
e.target.click(); | |
}) | |
blah.addEventListener('click', function() { | |
/* actual functionality */ | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment