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

源码我重构了一下,也明白你思路。我记得你以前的那份代码是木有问题的。但是你最新的更新好像有问题,你还继续维护这个库吗?如果不维护,我会尝试修复一下当前代码在IOS和Android下无法滚动的问题。 #2

Open
jf3096 opened this issue Jan 18, 2016 · 5 comments

Comments

@jf3096
Copy link

jf3096 commented Jan 18, 2016

No description provided.

@yuanzm
Copy link
Owner

yuanzm commented Jan 18, 2016

<style type="text/css"> html, body { width: 100%; height: 100%; } #container { height: 100%; } </style>

不滚动的问题出在这里。
不能简单粗暴把所有需要作用的元素都写这个样式,我目前遇到的场景比这个复杂,所以还在完善中。

@jf3096
Copy link
Author

jf3096 commented Jan 19, 2016

好的 麻烦你了。

@jiankafei
Copy link

不滚动的问题好像出在js里判断了是IOS设备,就加那段样式,但 Android 里没有这个样式就没有overflow-y: auto了。所以就不滚动了。可以去掉设备判断,这样的话所有设备的滚动元素就都有了overflow-y: auto,而 -webkit-overflow-scrolling: touch 在有用的设备里生效,在不生效的设备里也不会有什么问题啊!

@jiankafei
Copy link

还有,要滚动的元素的高度也要有限制的,比如100%等等

@LydiaaaWang
Copy link

为什么我的实验是完全没有效果?

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

4 participants