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

Solved Zoom to mouse issue/request #406 #417

Merged
merged 3 commits into from
Aug 24, 2020
Merged

Conversation

tenzens
Copy link
Contributor

@tenzens tenzens commented Aug 22, 2020

zoom demo

Summary / How this PR fixes the problem?

It solves the issue of only zooming to the center of the view. Now you can zoom to and from mouse position.

Known Issues / Things To Do

There might be an easier way to solve this but this is what I was able to come up with. Also this is my first commit to any project at all so please keep that in mind when giving me feedback :)

This PR fixes/implements the following bugs/features:

@albfan
Copy link
Collaborator

albfan commented Aug 23, 2020

We can review and suggest refactors, but would be interesting to upload an screencast of what current implementation does.

@tenzens
Copy link
Contributor Author

tenzens commented Aug 23, 2020

Thanks for the reply. I updated my text with a gif. If required I can also upload a full res video via google drive.

Copy link
Member

@Alecaddd Alecaddd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for your contribution, this works very nicely.
The code can be optimized a little bit, but it's mostly stylistic, so I'm okay with merging it.
Cheers

@Alecaddd Alecaddd merged commit 31fc30e into akiraux:master Aug 24, 2020
@Alecaddd Alecaddd mentioned this pull request Aug 24, 2020
46 tasks
@tenzens tenzens deleted the 406 branch August 24, 2020 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: Zoom should zoom to cursor, not center of view.
3 participants