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

onWheel is a passive listener #625

Closed
wants to merge 1 commit into from

Conversation

rickwargo
Copy link

onWheel should be a passive listener so it does not significantly slow down scrolling. It also resolves issue #425 such that Chrome does not log a message to the console:

useTouchMove.js:154 [Violation] Added non-passive event listener to a scroll-blocking 'wheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952

onWheel should be a passive listener so it does not significantly slow down scrolling. It also resolves issue react-component#425 such that Chrome does not log a message to the console:
```
useTouchMove.js:154 [Violation] Added non-passive event listener to a scroll-blocking 'wheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
```
@vercel
Copy link

vercel bot commented Dec 14, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
tabs ❌ Failed (Inspect) Dec 14, 2022 at 0:19AM (UTC)

@csdebruin
Copy link

Still getting this error

@afc163
Copy link
Member

afc163 commented Sep 29, 2024

Fixed in #723

@afc163 afc163 closed this Sep 29, 2024
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.

3 participants