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

Enable Zoom to Cursor for Improved Canvas Navigation #10

Open
1 task
cabaucom376 opened this issue Jan 16, 2025 · 0 comments
Open
1 task

Enable Zoom to Cursor for Improved Canvas Navigation #10

cabaucom376 opened this issue Jan 16, 2025 · 0 comments

Comments

@cabaucom376
Copy link
Collaborator

Description

Current Behavior

The current zooming implementation centers the zoom action around a fixed point in the center of the canvas. This behavior makes it cumbersome to quickly focus on specific areas of the canvas and requires additional panning to adjust the viewport after zooming.

Proposed Improvement

Introduce a "zoom to cursor" feature that centers the zoom action around the location of the user's cursor. This would provide a more intuitive and efficient navigation experience, particularly when working on detailed areas of the canvas.

Benefits

  • Streamlined navigation for users, reducing the need for additional panning after zooming.
  • More intuitive and predictable zooming behavior.
  • Enhanced usability, especially for users working on large or complex canvases.

Steps to Implement

  1. Adjust the zoom logic to calculate the focal point based on the cursor's position relative to the canvas.
  2. ...

Optional

  • Add a configuration option to toggle between "zoom to cursor" and the current behavior for users who prefer the latter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants