Skip to content

Instantly share code, notes, and snippets.

@kejyun
Created October 4, 2012 15:38
Show Gist options
  • Save kejyun/3834463 to your computer and use it in GitHub Desktop.
Save kejyun/3834463 to your computer and use it in GitHub Desktop.
Pad TouchStart
document.getElementById('someid').addEventListener('touchstart', function(event){
var firstFinger = event.targetTouches[0];
document.getElementById('messageBox').innerHTML = 'point ' + firstFinger.pageX + ',' + firstFinger.pageY + ' touched!';
}, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment