Missing input events when render takes long time (InteractiveOrientationWidget)

Based on vtk.js I create GitHub - valrom/vtk-js-view-cube-test: Missing events when click on OrientWidget when render takes long time where we have 2 widget managers. One InteractiveOrientationWidget and another for any widgets in world space.

When render takes significant time (for example 10 fps and low) there is a chance of unhandled events, and while mouse in main area, vtk thinks that mouse in smaller area.

As result when in corrupted state we can’t move camera and place any widgets.

Reproduce:

clone repo GitHub - valrom/vtk-js-view-cube-test: Missing events when click on OrientWidget when render takes long time

npm init
npm run dev

Go to localhost:5173
Click on orient widget and move mouse to main area.
Try move camera or place widget with button in upper part of the page.