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

OrbitControls: Ensure interceptControlDown() listener is removed in dispose(). #27778

Merged
merged 2 commits into from
Feb 19, 2024

Conversation

IvanLi-CN
Copy link
Contributor

Description

#27446 never seems to remove the interceptControlDown() from the keydown event of the document. I found that this caused the memory leak during my memory leak troubleshooting, so I added removeEventListener to dispose().

image

Please feel free to correct me if my understanding is wrong, thanks.

@Mugen87 Mugen87 added this to the r162 milestone Feb 19, 2024
@Mugen87 Mugen87 merged commit 98941a0 into mrdoob:dev Feb 19, 2024
8 of 10 checks passed
@Mugen87 Mugen87 changed the title OrbitControls: interceptControlDown listener not removed while dispose OrbitControls. OrbitControls: Ensure interceptControlDown() listener is removed in dispose(). Feb 19, 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.

None yet

2 participants