Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After typing either key 'P' or 'F' the UI is frozen under Windows (not under Linux) #53

Open
Andreas-Forster opened this issue Aug 27, 2020 · 1 comment
Labels

Comments

@Andreas-Forster
Copy link
Member

Under Windows 10 the UI freezes after typing one of the keys 'F' or 'P'. Typing the key once is enough. The same thing does not happen when using the exact same .jar under Linux. This bug was verified on two different window machines.

Steps to reproduce the bug:

  1. Load the UI
  2. Load some data (e.g. a .stl-mesh)
  3. Verify that you can turn the shape using the mouse (left-draging with the mouse)
  4. Hit the key 'F' or 'P' once
  5. Try to rotate the shape again -> will not work as it is frozen.
@Andreas-Forster
Copy link
Member Author

After some investigation, it looks that it is a problem of VTK with the call off component.getRenderWindowInteractor().CharEvent(); in the vtkInteractorForwarder class. Until this is solved, one can use a custom Interactor for the ScalismoFrame which blocks the forwarding of the key-pressed events for these two keys.

  override def keyPressed(e: KeyEvent): Verdict = {
    e.getKeyChar match {
      case 'p' => Block
      case 'f' => Block
      case _ => Pass
    }
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant