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

feat: make scroll event handler passive #31

Merged
merged 2 commits into from
Oct 22, 2024
Merged

Conversation

hirasso
Copy link
Owner

@hirasso hirasso commented Oct 22, 2024

Description

Make the scroll handler passive as we never need to call preventDefault() on it.

Checks

  • The PR is submitted to the main branch
  • The code was formatted before pushing (npm run format)
  • All tests are passing (npm run test)
  • New or updated tests are included
  • The documentation was updated as required

Copy link

netlify bot commented Oct 22, 2024

Deploy Preview for scrollmirror ready!

Name Link
🔨 Latest commit 7a45ee9
🔍 Latest deploy log https://app.netlify.com/sites/scrollmirror/deploys/6717ef9bdcfd9f00086123ee
😎 Deploy Preview https://deploy-preview-31--scrollmirror.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@hirasso hirasso changed the title feat: use {passive: true} feat: make scroll event handler passive Oct 22, 2024
@hirasso hirasso merged commit c99e890 into main Oct 22, 2024
5 checks passed
@hirasso hirasso deleted the feat/use-passive-true branch October 22, 2024 18:35
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