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

Wrong mouse position passed to VTK #4

Open
phcerdan opened this issue Oct 22, 2021 · 1 comment
Open

Wrong mouse position passed to VTK #4

phcerdan opened this issue Oct 22, 2021 · 1 comment

Comments

@phcerdan
Copy link
Owner

It seems there is a wrong coefficient in the Y axis.
At the bottom of the viewer, the mouse position (from imgui)
and the mouse position in the vtkRenderWindow are the same.

But going upper in the Y axis, a gap develops. The vtk mouse position
is lower than the real mouse position.
I am not sure what happens, it's not a failure on "fixed" heights (like menu)
but some kind of coefficient.

@jspanchu
Copy link

The mouse event code looks normal. I wonder if this has something to do with window sizes..

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

No branches or pull requests

2 participants