文章目录
  1. 1. iscroll滑动效果

iscroll滑动效果

使用iscroll滑动要禁止touchmove事件的默认动作,见demo

1
2
new IScroll('#wrapper', { scrollX: true, scrollY: false, mouseWheel: true });
document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);

文章目录
  1. 1. iscroll滑动效果