Created
December 14, 2015 06:20
-
-
Save lgh06/910a5cff614326330251 to your computer and use it in GitHub Desktop.
jquery touch event,clientY,pageY
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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