Skip to content

Instantly share code, notes, and snippets.

@sirpengi sirpengi/touch.js

Created Jul 18, 2014
What would you like to do?
emulate touch event
// go to
el = document.getElementsByClassName("button")[0];
e = new Event("touch");
e.initEvent("touchstart", true, true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.