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

h5页面 addEventListener 参数 passive 传为true #8649

Closed
myNameIsDu opened this issue Feb 4, 2021 · 3 comments
Closed

h5页面 addEventListener 参数 passive 传为true #8649

myNameIsDu opened this issue Feb 4, 2021 · 3 comments
Labels
enhancement New feature or request question Further information is requested T-h5 Target - 编译到 H5

Comments

@myNameIsDu
Copy link

这个特性解决了什么问题?

浏览器会给很多警告
image

能感觉到chrome的开发工具会一直在刷这个警告,开发工具会比较卡,然后就是滚动性能问题
https://rbyers.github.io/scroll-latency.html

https://developers.google.com/web/updates/2016/06/passive-event-listeners

这个 API 长什么样?

默认传入passive为true

@luckyadam
Copy link
Member

是使用哪个组件导致的

@Chen-jj Chen-jj added the question Further information is requested label Feb 9, 2021
@myNameIsDu
Copy link
Author

使用View组件就会出这个警告:

image
image

image
image

@ZakaryCode ZakaryCode added the T-h5 Target - 编译到 H5 label Jan 15, 2022
@ZakaryCode
Copy link
Contributor

未能复现到该问题,如果存在可以说明具体版本

@taro-bot2 taro-bot2 bot removed the to be closed label Jan 26, 2022
@taro-bot2 taro-bot2 bot closed this as completed Jan 26, 2022
@ZakaryCode ZakaryCode moved this to Done in H5 Apr 10, 2023
@ZakaryCode ZakaryCode added this to H5 Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested T-h5 Target - 编译到 H5
Projects
Archived in project
Development

No branches or pull requests

4 participants