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

van-dialog van-popup在里面填充内容后,还可以滑动页面。 #1226

Closed
sonofmagic opened this issue Jan 17, 2019 · 2 comments
Closed

Comments

@sonofmagic
Copy link

描述一下问题
本人写了几个页面比较长,上下滑动的那种,发现使用van-dialog van-popup的时候,拖动dialog中间和popup里面的时候,页面依旧可以上下滑动(非外层的modal),不知道是否有什么方法,可以在dialog和popup出现的时候,锁住页面的位置。

截图
非锁定状态的问题(canvas 手写签名后上下滑动)
image

环境

  • 设备: 安卓
  • 基础库版本: 2.5.0
  • Vant Weapp 版本:0.4.10
@woodccc
Copy link

woodccc commented Jan 26, 2019

这是微信滚动穿透的问题,跟 vant 没关系。
可以使用 scroll-view ,弹出 popup 时,设置 scroll-y 为 false。
希望有帮助。

@rex-zsd rex-zsd closed this as completed Jan 26, 2019
@weijiegao
Copy link

weijiegao commented Jun 21, 2019

该组件外层套一层view,设置catchtouchmove='banScroll'即可

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