preventoverscrolljs
preventoverscrolljs copied to clipboard
1月19日更新后依旧无法滚动
按照你的说法,body,html,container添加了height:100%; 也用ua判断了android,还是在android无法上啦,主要原因 代码41行, if (!_util.checkDeviceType('ios')), IOS直接return了。 if (!_util.checkDeviceType('ios')) return;
for (i = 0, il = list.length; i < il; i++) {
item = doc.getElementById(list[i]);
if (!item)
throw '';
item.className += that.config.cClass;
}
我研读了一下你的代码,测试了一下Android, 我觉得问题发生在这里: line:100 if (scrollTop === 0)
ele.scrollTop永远是0
提交Pull Request呗,上班忙~
没关系,不着急,有时间再说呗,麻烦了
npm install https://github.com/jf3096/medical-agent npm start 127.0.0.1:3000/#/test
Android无法上啦 如果方便,就测试一下吧