fix(ParentedView): mouse scrolling behavior for out-of-focus windows#125
Conversation
|
please review: @floryst |
|
@finetjul Please also take a look at this if you have time. This is related to the vtk-js PR. |
|
Overall LGTM. It would be nice to have pointer events fire on unfocused windows, but I guess there are good perf and expected behavior reasons for it. |
Out of focus windows/viewports do not detect `pointerenter` events reliably. Add listener to `wheel` events for rebinding interactor with events.
8a8b7d9 to
f6451eb
Compare
It looks like this is really a macOS problem. In windows, the events seem to trigger just fine. |
|
I just realized: you will also need to update the vtk.js version, since setContainer is a new API. |
|
oh yes. I'll post a PR. |
|
🎉 This PR is included in version 2.0.0-beta.14 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 2.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Viewports on an out-of-focus window do not detect
pointerenterevents reliably. Add listener towheelevents for rebinding interactor with events so that wheel events can be captured by viewports that are in an out-of-focus window.On Windows 11, recreating this issue requires a multi-window application with all windows out of focus (background). Whereas, on MacOS (tested with Sonoma and Chrome), a single out-of-focus window is sufficient to reproduce this bug.
Related vtk-js PR: Kitware/vtk-js#2992