Skip to content

Instantly share code, notes, and snippets.

@lgh06
Created December 14, 2015 06:20
Show Gist options
  • Save lgh06/910a5cff614326330251 to your computer and use it in GitHub Desktop.
Save lgh06/910a5cff614326330251 to your computer and use it in GitHub Desktop.
jquery touch event,clientY,pageY
$(document).on('touchstart touchend','html',function($e){
var e = $e.originalEvent;
var list = e.touches;
var changedList = e.changedTouches;
console.log(e);
console.log(changedList[0].pageX);
console.log(changedList[0].pageY);
console.log(changedList[0].clientX);
console.log(changedList[0].clientY);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment