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

双层嵌套问题 #648

Closed
vijay19920608 opened this issue Aug 29, 2018 · 5 comments
Closed

双层嵌套问题 #648

vijay19920608 opened this issue Aug 29, 2018 · 5 comments

Comments

@vijay19920608
Copy link

vijay19920608 commented Aug 29, 2018

双层嵌套使用了stopPropagation: true,但是里面的滚动如果滚到底或者滚到顶部,触发不了最外层的滚动

@vijay19920608
Copy link
Author

希望里层的滚动到顶部或者底部的时候,就能触发最外层的滑动,如果里面的滚动没到顶部或者底部,就只触发里层的滑动

@ustbhuangyi
Copy link
Owner

这个问题 cube-ui 已经在尝试解决方案,从 better-scroll 底层是不解决的,解决方案需要上层的封装

@vijay19920608
Copy link
Author

有例子吗??

@hezhongfeng
Copy link
Contributor

这个的确是个问题,在cube-ui解决了的话也是棒棒哒,期待

@dolymood
Copy link
Collaborator

cube-ui 在 1.12 的版本中加入了 Scroll 组件的 nestMode 用于控制这种交互行为,欢迎体验。

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

No branches or pull requests

4 participants