touchmove获取clientX

$("body").bind('touchmove', function(e){ 
//stops normal scrolling with touch
e.preventDefault();

console.log(event.touches[0].pageX);
console.log(event.touches[0].clientX);
})

 You are right, seems like a bug. You could hack around it by offsetting the scroll of the page (event.targetTouches[0].screenY - $(window).scrollTop() )

你可能感兴趣的:(client)