Skip to content

Conversation

@floryst
Copy link
Contributor

@floryst floryst commented Feb 28, 2024

Before, the call to switchTarget() would happen after the interactor has already handled the event. This can cause issues with the initial interaction event target being incorrect.

This change moves the call to the capture phase, so that the interactor will be properly switched before vtk.js processes any events.

FYI @jadh4v this should address the out-of-focus wheel event issue without changing the vtkInteractorStyleManipulator.

@floryst floryst merged commit 5bd0ec1 into beta Mar 1, 2024
@floryst floryst deleted the fix-event-ordering branch March 1, 2024 17:59
@jourdain
Copy link
Collaborator

jourdain commented Mar 1, 2024

🎉 This PR is included in version 2.0.0-beta.15 🎉

The release is available on:

Your semantic-release bot 📦🚀

@jourdain
Copy link
Collaborator

🎉 This PR is included in version 2.0.0 🎉

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants