`touchmove`事件不会在Mobile Safari上触发?

时间:2013-09-27 23:04:42

标签: jquery iphone safari

Mobile Safari不会注册touchmove个活动! touchstarttouchend都按预期工作,但touchmove拒绝解雇。

$("#Element").on({
    "touchmove" : function(e){
        e.preventDefault();
        console.log("touch move!");
    }
});

1 个答案:

答案 0 :(得分:0)

问题出在CSS中。为了让我网站上的滚动更加顺畅,我补充道:

html, body {
    -webkit-overflow-scrolling: touch;
}

我评论过后,touchmove已正确解雇。

相关问题