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

在竖向滑动bs里嵌套横向滑动bs,无法兼容横向滑动区域内点击和横竖向滑动响应 #1350

Open
yelin1597532 opened this issue Jul 14, 2023 · 0 comments

Comments

@yelin1597532
Copy link

What problem does this feature solve?

在竖向滑动bs里嵌套横向滑动bs的情况下。由于在两个bs里都有内容需要点击,根据文档里的说明,为了避免横向bs内容点击发出两次click事件,我必须在横向bs里设置stopPropagation:true。这样会吧所有事件都阻止冒泡,导致手指在横向bs区域内上下滑的话无法触发竖向bs的滑动。但如果不设置stopPropagation:true,虽然可以解决横向bs区域内的竖向滑动响应问题,点击横向bs内的元素又会触发2次click

What does the proposed API look like?

提供click专用的stopPropagation设置,比如stopClickPropagation,用来单独组织click事件的冒泡

@yelin1597532 yelin1597532 changed the title [New Feature] 在竖向滑动bs里嵌套横向滑动bs,无法兼容横向滑动区域内点击和横竖向滑动响应 在竖向滑动bs里嵌套横向滑动bs,无法兼容横向滑动区域内点击和横竖向滑动响应 Jul 18, 2023
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

1 participant