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

Translate camera with mouse #29

Closed
w-m opened this issue Jul 30, 2024 · 0 comments
Closed

Translate camera with mouse #29

w-m opened this issue Jul 30, 2024 · 0 comments
Labels

Comments

@w-m
Copy link
Collaborator

w-m commented Jul 30, 2024

I'd like to move the camera relative to the scene by clicking and holding the third mouse button (see e.g. MeshLab camera controls).

christian-helms added a commit to christian-helms/splatviz that referenced this issue Aug 7, 2024
The camera can now be moved relative to the scene by dragging with the right mouse button, both in orbital as well as WASD mode. In my opinion using the right mouse button instead of the middle one results in a better user experience. When dragging with the middle mouse button it can easily happen that also the wheel moves a little bit.

Please try the feature out, do a code review and let me know about improvement ideas. I thought of making the dragging smoother by adding some momentum and ignoring negligible changes in the mouse position. But I suggest we leave that for another issue.
christian-helms added a commit that referenced this issue Aug 8, 2024
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

2 participants