Skip to content

[Bug] InteractiveOrientationWidget stuck in active state #3144

Open
@Antti-Palola

Description

@Antti-Palola

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: widgetGaps and errors in interactive widgetstype: bug 🐞Errors in functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions