drawio icon indicating copy to clipboard operation
drawio copied to clipboard

Scroll Into View: Selected Shapes

Open tmpmachine opened this issue 11 months ago • 2 comments

  • [x] I agree to follow the Code of Conduct that this project adheres to.
  • [x] 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.

tmpmachine avatar Jan 08 '25 07:01 tmpmachine

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.

chipbite avatar Jan 14 '25 17:01 chipbite

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. See the FAQ for more information.

github-actions[bot] avatar Sep 22 '25 11:09 github-actions[bot]