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

Pan with space or any other key #278

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

tafode
Copy link
Contributor

@tafode tafode commented Jun 19, 2024

As suggested in the issues #238 and #226, I have added a new input "canvas_pan_key" which allows to pan the viewport the same as the middle mouse button does.

New input is defaulted to control + space, because I don't want to change the default behavior of the application. But everyone who needs it can configure it to the space bar and replace the "center to mouse position".

@mbrlabs
Copy link
Owner

mbrlabs commented Aug 27, 2024

I'd like to merge this feature. Could you update your PR to accommodate for the latest Godot 4 port if possible? You can change the keyboard shortcut to just Space since i removed the Center to Mouse feature that was using it previously (might add it back at some point using a different default shortcut).

This would also close #147.

@tafode
Copy link
Contributor Author

tafode commented Aug 27, 2024

Sure, I can adapt it. But it has to wait until end of the week / next week.

@tafode tafode reopened this Aug 29, 2024
@tafode
Copy link
Contributor Author

tafode commented Aug 29, 2024

Code should now be valid with the new Godot 4.3 code.

@mbrlabs mbrlabs merged commit baebe8b into mbrlabs:main Aug 30, 2024
6 checks passed
@mbrlabs
Copy link
Owner

mbrlabs commented Aug 30, 2024

Thank you!

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