解决办法
去掉下面这几行就解决,这几行就是把touchmove事件屏蔽掉
document.addEventListener('touchmove', function (e){
e.preventDefault();}, false);
var myScroll;
function loaded () {
myScroll = new IScroll('#wrapper', {
scrollX: true,
scrollY: false,
momentum: false,
snap: true,
snapSpeed: 400,
keyBindings: true,
indicators: {
el: document.getElementById('indicator'),
resize: false
}
});
}
//去掉下面这几行就解决
//document.addEventListener('touchmove', function (e){
// e.preventDefault();
//}, false);
window.onload=loaded;