Skip to content

fix(RenderWindowInteractor): add/remove event listeners on same object #1906

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

Merged
merged 1 commit into from
May 11, 2021

Conversation

scottwittenburg
Copy link
Collaborator

Context

Fix console errors coming from vtkRenderWindowInteractor after unbinding and rebinding events.

Changes

#1858 Changed the bindEvents method in the RWI to add key event listeners on the document rather than the body. This change fixes the unbindEvents methods to match, i.e. it uses the document rather than the body to removeEventListener.

@jourdain jourdain merged commit 1a8747e into master May 11, 2021
@scottwittenburg scottwittenburg requested a review from jourdain May 11, 2021 17:05
@jourdain jourdain deleted the fix-rwi-event-listeners branch May 11, 2021 17:06
@scottwittenburg
Copy link
Collaborator Author

@jourdain Thanks. I guess you can ignore my request for your review 😉 I must have requested it just as you were merging.

@github-actions
Copy link

🎉 This PR is included in version 18.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot added the released Automated label label May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Automated label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants