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滚动穿透问题 #11

Open
hsingyin opened this issue Aug 4, 2020 · 0 comments
Open

iOS滚动穿透问题 #11

hsingyin opened this issue Aug 4, 2020 · 0 comments
Labels
bug Something isn't working iOS

Comments

@hsingyin
Copy link
Owner

hsingyin commented Aug 4, 2020

背景

写某些弹窗组件,会出现这样的问题,安卓上没有问题,iOS就会出现滚动穿透的问题。

思路

比较简单的解决方式,参考vant的popup组件写法,可以在弹窗显示的时候在body上加样式。

overflow: hidden !important;

弹窗关闭的时候,去除这个样式,就可以了。

@hsingyin hsingyin added bug Something isn't working iOS labels Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working iOS
Projects
None yet
Development

No branches or pull requests

1 participant