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

Scroll Into View: Selected Shapes #4841

Open
2 tasks done
tmpmachine opened this issue Jan 8, 2025 · 1 comment
Open
2 tasks done

Scroll Into View: Selected Shapes #4841

tmpmachine opened this issue Jan 8, 2025 · 1 comment

Comments

@tmpmachine
Copy link

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
When working on a large page, it's easy to lose track of your position after panning the viewport around. I would like a simple way to return to the last selected object.

If a graph object is selected, pressing the keyboard shortcut Ctrl+Home will scroll it into view, centering the selected graph in the viewport.

image

Describe alternatives you've considered
Center the viewport on the text when performing a search. My current solution is to leave a searchable keyword near the graph, but searching for this text doesn’t center the viewport on it.

image
image

Additional context
The keyboard shortcut Home is currently used for resetting the zoom level and viewport.

@chipbite
Copy link

Yes, this is a good idea. Currently, I get questions from people to be able to quickly zoom to a certain area.

So, in other canvas applications (miro, freeplane, that-mindmap-presentation-app, etc) you can define areas to zoom into and use different mechanisms to change the viewport to them. A link would be one mechanism, I think.

Current workaround for my use case is to put some rectangle, move it down below the elements (or put in another layer) and then use ctrl-shift-h to zoom to selected elements.

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