Open
Description
Bug description
InteractiveOrientationWidget stops the main view from working anymore. Can be fixed by clicking on the widget again.
Steps to reproduce
Go to https://kitware.github.io/vtk-js/examples/InteractiveOrientationWidget.html
- Start a quick mouse drag from orientation widget and end the drag outside the widget in the canvas area.
- OrientationMarkerWidget triggers orientation change but keeps active state
- Try to rotate model
- Model is stuck
Detailed Behavior
This often happens if you want to spin your model around and start the drag too close to the widget.
getActive
returns true and thus the mouse event is aborted.
Expected Behavior
The widget never gets stuck in active mode.
The same kind of behavior can be caused by starting a normal model rotate and ending the drag outside browser: model will stay in rotation mode. Could this be improved by ending LeftButtonPress event on "drags outside"? I guess this event is somehow virtually created from pointerup/pointerdown events.
Environment
- vtk.js version: latest
- Browsers: any
- OS: any
Activity