Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jf3096 opened this issue Jan 22, 2016 · 3 comments
Open

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

jf3096 opened this issue Jan 22, 2016 · 3 comments

Comments

@jf3096
Copy link

jf3096 commented Jan 22, 2016

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

@yuanzm
Copy link
Owner

yuanzm commented Jan 22, 2016

提交Pull Request呗,上班忙~

@jf3096
Copy link
Author

jf3096 commented Jan 23, 2016

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

@jf3096
Copy link
Author

jf3096 commented Jan 23, 2016

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants