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

使用 passive 模式监听部分事件 #38

Closed
songguangyu opened this issue Nov 23, 2017 · 3 comments
Closed

使用 passive 模式监听部分事件 #38

songguangyu opened this issue Nov 23, 2017 · 3 comments

Comments

@songguangyu
Copy link
Member

image
上面是chrome的log是否要做一下判断,移动端才监听这些事件?

@toxic-johann toxic-johann self-assigned this Nov 23, 2017
@toxic-johann
Copy link
Member

部分是移动端的。和移动端关系不大。部分代码加 passive 就好。

@toxic-johann
Copy link
Member

此 issue 希望 @huzunjie 通过 #1 进行支持。

@toxic-johann toxic-johann added doing and removed todo labels Nov 23, 2017
@huzunjie
Copy link
Member

huzunjie commented Nov 24, 2017

chimee-helper-dom 已修改并export supportsPassive 。

addEvent (el, type, handler, once, { passive: true } ) 即可在支持 passive 的环境启用相应配置。

chimee-helper 也已升级发版,请试用~~

@toxic-johann toxic-johann changed the title 添加了无用的监听事件 使用 passive 模式监听部分事件 Nov 24, 2017
@toxic-johann toxic-johann added fixed and removed doing labels Nov 25, 2017
toxic-johann added a commit that referenced this issue Nov 25, 2017
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

3 participants