是否有可能做到这样的事情: http://itunes.apple.com/us/app/foot-fairy-fun-kids-shoe-measurement/id460810086?mt=8
这是一个相当复杂的多点触控检测,我想通过我的PhoneGap应用程序实现......
谢谢你, 问候
答案 0 :(得分:0)
为什么不呢。触摸事件将为您提供与屏幕的每次触摸联系:
$(document).on("touch.YourEventIdentifier", touchFunction);
function touchFunction(event){
if(event.originalEvent.targetTouches && event.originalEvent.targetTouches.length > 0){
console.log(event.originalEvent.targetTouches); // Touches
console.log(event.originalEvent.targetTouches[0].clientX); // X coordinate for the first touch
}
}