Jquery `touchmove`活动不会在Mobile Safari上触发?
Mobile Safari不会注册touchmove事件!touchstart和touchend都按预期工作,但touchmove拒绝启动Jquery `touchmove`活动不会在Mobile Safari上触发?,jquery,iphone,safari,Jquery,Iphone,Safari,Mobile Safari不会注册touchmove事件!touchstart和touchend都按预期工作,但touchmove拒绝启动 $("#Element").on({ "touchmove" : function(e){ e.preventDefault(); console.log("touch move!"); } }); 问题是CSS。为了让我的站点上的滚动更流畅,我添加了: html, body { -webkit-ov
$("#Element").on({
"touchmove" : function(e){
e.preventDefault();
console.log("touch move!");
}
});
问题是CSS。为了让我的站点上的滚动更流畅,我添加了:
html, body {
-webkit-overflow-scrolling: touch;
}
一旦我把它评论出来,touchmove就正确地发射了