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

Center view to mouse cursor #77

Closed
lucasnobre212 opened this issue Oct 22, 2021 · 2 comments
Closed

Center view to mouse cursor #77

lucasnobre212 opened this issue Oct 22, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@lucasnobre212
Copy link

lucasnobre212 commented Oct 22, 2021

Shortcut to center the view in the mouse cursor, so when we are sketching a diagram or something like it, it is not so troublesome to keep scrolling the view everytime.
Centering it will make the whole task more productive

EDIT: I could try to implement this myself, but I would need some guidance. If you can point me a direction, I would love to help!

@lucasnobre212 lucasnobre212 added the enhancement New feature or request label Oct 22, 2021
@mbrlabs
Copy link
Owner

mbrlabs commented Oct 23, 2021

Very cool idea!
If you want to do it yourself have a look at lorien/IninfiteCanvas/PanZoomCamera.gd which handles panning and zooming of the canvas.

@mbrlabs
Copy link
Owner

mbrlabs commented Dec 20, 2021

Implemented in 15ab093 (not released yet). The shortcut is C.

@mbrlabs mbrlabs closed this as completed Dec 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants