preventoverscrolljs icon indicating copy to clipboard operation
preventoverscrolljs copied to clipboard

1月19日更新后依旧无法滚动

Open jf3096 opened this issue 10 years ago • 3 comments

按照你的说法,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

jf3096 avatar Jan 22 '16 06:01 jf3096

提交Pull Request呗,上班忙~

yuanzm avatar Jan 22 '16 06:01 yuanzm

没关系,不着急,有时间再说呗,麻烦了

jf3096 avatar Jan 23 '16 18:01 jf3096

npm install https://github.com/jf3096/medical-agent npm start 127.0.0.1:3000/#/test

Android无法上啦 如果方便,就测试一下吧

jf3096 avatar Jan 23 '16 20:01 jf3096