Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var testEl = document.getElementById("el");
- testEl.onmousedown = function () {
- // initialize mouse interface
- }
- testEl.ontouchstart = function () {
- testEl.onmousedown = null; // initialize touch interface
- }
Add Comment
Please, Sign In to add comment