I\'m trying to get touch coordinates relative to the viewport of browser from touch events (such as touchstart). I tried to get them from clientX/Y pro
Try this
event.touches[0].pageX
Note that it is always event.touches even if you define your event like this (using jquery here)
$("body").bind('touchmove', function(e){
//stops normal scrolling with touch
e.preventDefault();
console.log(event.touches[0].pageX)
})
;
The Safari guide provides more detail