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

fix: actually removing event listener by setting capture option to true #1525

Merged

Conversation

tampiland
Copy link
Contributor

Why

I noticed that removal of event listener was not properly done, potentially causing unnecessary computations after e.g. canvas resize.

What

Added the capture option set to true to removeEventListener for 'pointermove' to match the corresponding addEventListener.

Checklist

  • Ready to be merged

Comments

Reference to documentation:
https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener#matching_event_listeners_for_removal

@vercel
Copy link

vercel bot commented Jun 20, 2023

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

Name Status Preview Comments Updated (UTC)
drei ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 20, 2023 9:09am

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 1e20315:

Sandbox Source
floral-sun-wjmxrd Configuration
Ground reflections and video textures Configuration
arc-x-pmndrs-colors Configuration

Copy link

🎉 This PR is included in version 9.102.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants