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

Use passive event listener as much as possible #209

Merged
merged 2 commits into from
Feb 25, 2020
Merged

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Feb 25, 2020

Lighthouse is pointing out to use passive event listener for improving scroll performance with touch. This PR adds { passive: true } to touch event listeners that does never call e.preventDefault().

@yhatt yhatt merged commit d8ecb72 into master Feb 25, 2020
@yhatt yhatt deleted the passive-listener branch February 25, 2020 13:15
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

Successfully merging this pull request may close these issues.

1 participant