-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[Taro3.x] 关于阻止事件冒泡的滚动穿透问题 #7545
Comments
taro-bot2
bot
added
F-react
Framework - React
T-weapp
Target - 编译到微信小程序
V-3
Version - 3.x
labels
Sep 7, 2020
我也遇到这个问题了 |
同上,也遇到了这个问题 |
遇到这个问题 +1 |
问题 +1 |
问题+1 层主有解决办法了吗? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
微信小程序
小程序基础库: 2.12.2
使用框架: React
复现步骤
打开微信开发者工具,导入项目代码片段 代码片段
期望结果
阻止父级组件的滚动事件
实际结果
未阻止父级组件的滚动事件
环境信息
补充信息
看了很多Issue里关于滚动穿透问题解决方案, 1.x版本在事件内部代码体内加入 stopPropagation 会转换为 catch类事件, 但3.x版本编译后的代码很难找到编译结果,希望能有效解决此类问题!
阻止事件冒泡是否可配置的阻止
比如:
The text was updated successfully, but these errors were encountered: