Navigation 重置触摸事件的事件处理程序

Navigation 重置触摸事件的事件处理程序,navigation,touch,touch-event,Navigation,Touch,Touch Event,我的网站www.philipmadeley.com在导航中的触控事件中遇到问题。它似乎可以处理第一次触摸,但在其他情况下不起作用。我厌倦了几个解决方案,但我不是那么专业,所以我想我可能忽略了一些东西。。。无论如何,我似乎找不到答案。希望您能提供帮助。使用event.originalEvent.touchs或event.originalEvent.changedtouchs 并使用实例0 $("#div").bind("touchstart",function(event){ even

我的网站www.philipmadeley.com在导航中的触控事件中遇到问题。它似乎可以处理第一次触摸,但在其他情况下不起作用。我厌倦了几个解决方案,但我不是那么专业,所以我想我可能忽略了一些东西。。。无论如何,我似乎找不到答案。希望您能提供帮助。

使用event.originalEvent.touchs或event.originalEvent.changedtouchs

并使用实例0

$("#div").bind("touchstart",function(event){

     event.preventDefault();            
     var touches = event.originalEvent.touches || event.originalEvent.changedTouches;
    if(touches.length == 1){

var touch = touches[0];

// Place element where the finger is horizontally
tx = touch.pageX ;
alerttx;
}};

非常感谢: