在Safari浏览器中, 双击(注意: 是双击的时候才会出现,touchend和click的时候都不会出现)tab栏最后一个选项"筛选"的时候, 页面会整体左移,这个是什么原因引起的呢?
在Safari浏览器中,禁止掉touchend事件,可解决这个问题,但是前提是,页面滚动使用了iscroll,否则touchend事件会失效,如果用了iscroll,touchend事件则可正常执行.
document.addEventListener('touchmove', function (e) {
e.preventDefault();
return false;
}, false);
document.addEventListener('touchend', function (e) {
e.preventDefault();
return false;
}, false);