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

Feature: Zoom should zoom to cursor, not center of view. #406

Closed
jdittrich opened this issue Aug 13, 2020 · 1 comment · Fixed by #417
Closed

Feature: Zoom should zoom to cursor, not center of view. #406

jdittrich opened this issue Aug 13, 2020 · 1 comment · Fixed by #417
Labels
Milestone

Comments

@jdittrich
Copy link

Expected Behavior

If I zoom via the mouse wheel, it should zoom to the cursor. So if an item is in the upper left corner of my screen and I place the mouse cursor there and zoom (ctrl+wheel) the cursor should stay on the item and the view port should zoom in on the item (The mechanics themselves have nothing to do with the item, it is just easier to imagine this way)

This is standard behavior in many applications, like inkscape and figma (though, to my annoyance, not in balsamiq)

Current Behavior

Currently, the zoom is on center. This means the view is made "larger" while its center stays in place

Possible Solution

Implement zoom to cursor. This means that the viewport needs to shift depending on mouse position while zooming.

Context

When you zoom in, you usually want to zoom in on something. The only way to do this right now is to pan the object of interest into the center of the viewport and then zoom. This is cumbersome. Zoom-to-cursor would just mean you place the cursor on what you are interested in and zoom in.
(this is also coherent with pinch-to-zoom; while zoom to cursor pans the viewport in a way that your cursor stays on its position within the canvas/document, while pinch-to-zoom pans in a way so that your fingers or the point between them stays on the same position in the canvas/document)

Zoom-To-Cursor in Inkscape

Peek 2020-08-13 22-03

  • Akira Version: v0.0.12 - alpha
  • OS Info: Ubuntu 20.04
@Alecaddd Alecaddd added this to the v0.1.0 milestone Aug 13, 2020
@Alecaddd
Copy link
Member

Hi, thanks for trying Akira.
Indeed this is a feature we want to implement before the beta, and we also want to implement the variation of zooming with the selected item at the center if done via keyboard.

Listed on bug #358

Alecaddd added a commit that referenced this issue Aug 24, 2020
* Solved Zoom to mouse issue/request

* fixed compilation error

Co-authored-by: Alessandro <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants