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

SpringController - zoom out fix #807

Merged
merged 1 commit into from
Jun 8, 2023

Conversation

dzosz
Copy link
Collaborator

@dzosz dzosz commented May 5, 2023

Fix zooming out when option CamSpringZoomOutFromMousePos is enabled. When camera is zoomed out maximally it will no longer move to the sides when mouse scrolled out.
Problem shown here https://streamable.com/5d0f4f . Sorry cursor is not visible but the lateral movement (when camera is already on the zoom limit) is undesired and uncontrollable.
After the fix the cursor always remains in the same place on the ground so it's possible to:

  1. scroll max out
  2. scroll back in to exactly the same point (if mouse wasn't moved)

Fix zooming out when option CamSpringZoomOutFromMousePos is enabled.
When camera is zoomed out maximally it will no longer move to the sides
when mouse scrolled out.
@lhog lhog merged commit 24221eb into beyond-all-reason:BAR105 Jun 8, 2023
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

Successfully merging this pull request may close these issues.

2 participants