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

Improve zoom experience #7

Open
kvg opened this issue Apr 27, 2024 · 0 comments
Open

Improve zoom experience #7

kvg opened this issue Apr 27, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@kvg
Copy link
Collaborator

kvg commented Apr 27, 2024

Right now when the user zooms in or out, the y-axis range just decreases or increases equally. It would be nicer to have the user's mouse pointer be the origin of the zoom transformation, such that whatever is under the cursor stays pretty much where it is, and the axis expands/shrinks around that point.

See the following references:

  1. https://stackoverflow.com/questions/60190965/zoom-scale-at-mouse-position
  2. https://farazzshaikh.medium.com/affine-transformations-pan-zoom-skew-96a3adf38eb2
@kvg kvg added enhancement New feature or request good first issue Good for newcomers labels Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant