Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function startup() {
- const el = document.getElementsByTagName("canvas")[ 0 ];
- el.addEventListener("touchstart", handleStart, false);
- el.addEventListener("touchend", handleEnd, false);
- el.addEventListener("touchcancel", handleCancel, false);
- el.addEventListener("touchmove", handleMove, false);
- log("initialized.");
- }
Add Comment
Please, Sign In to add comment