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

bug: Still zoom to cursor when using keyboard for zooming #2924

Closed
jdittrich opened this issue Feb 8, 2023 · 1 comment · Fixed by #3037
Closed

bug: Still zoom to cursor when using keyboard for zooming #2924

jdittrich opened this issue Feb 8, 2023 · 1 comment · Fixed by #3037
Assignees
Labels
bug managed on taiga This issue has been moved to our project at Taiga.io
Milestone

Comments

@jdittrich
Copy link

jdittrich commented Feb 8, 2023

Steps To Reproduce

  1. Create some objects or paste an image to see the effects of zooming
  2. Use the keys + and - to zoom in an out

Expected behavior

The zoom should center on the current cursor position. This would be the same behavior that I get when I use Ctrl+Mousewheel

Actual behavior

The zooms center seems to be determined by the general coordinate system of the file

Screenshots or video

Cursor+Mousewheel:
zoom in cursor

+ on keyboard:
zoom in keyboard

Additional context

If there is no cursor on the canvas, it could still fall back to the global 0,0 point (or whatever cursor-less reference there is)

@jdittrich jdittrich added the bug label Feb 8, 2023
@jdittrich jdittrich changed the title bug: Zoom to cursor when using shortcuts bug: Still zoom to cursor when using keyboard for zooming Feb 8, 2023
@hirunatan
Copy link
Contributor

Yes, it seems that there is a bug about it. I've created a Taiga issue to track it there https://tree.taiga.io/project/penpot/issue/4825

@hirunatan hirunatan added the managed on taiga This issue has been moved to our project at Taiga.io label Feb 10, 2023
@Alotor Alotor self-assigned this Mar 10, 2023
@Alotor Alotor added this to the 1.18.0 milestone Mar 10, 2023
@Alotor Alotor mentioned this issue Mar 13, 2023
@Alotor Alotor linked a pull request Mar 13, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug managed on taiga This issue has been moved to our project at Taiga.io
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants