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

implement improved node spacing zooming #91

Merged
merged 3 commits into from
Sep 10, 2019
Merged

Conversation

sgratzl
Copy link
Contributor

@sgratzl sgratzl commented Sep 9, 2019

base on #88

closes #86 and closes #85

when changing the node size change the center of the map to the scaled old center. (either center of the map or the position under the mouse)

@sgratzl sgratzl requested a review from waxlamp September 9, 2019 20:46
@sgratzl sgratzl self-assigned this Sep 9, 2019
Copy link
Collaborator

@waxlamp waxlamp left a comment

Choose a reason for hiding this comment

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

The slider works perfectly, but the mousewheel interaction seems a bit off. The map seems to drift a bit on each wheel event, such that the center of the transform moves away from where the mouse is.

Can you also add something to the README about the ctrl-mousewheel interaction?

@sgratzl
Copy link
Contributor Author

sgratzl commented Sep 10, 2019

the shift could be because of some numeric rounding errors and if you don't hit the center perfectly the error adds up

@waxlamp
Copy link
Collaborator

waxlamp commented Sep 10, 2019

Thanks for looking into it, and for giving me a tour of the code.

David Manthey is away from the office right now, so let's just merge this and fix the mouse interaction later.

@sgratzl sgratzl changed the base branch from sgratzl/filter to master September 10, 2019 14:22
@sgratzl sgratzl merged commit 58157df into master Sep 10, 2019
@sgratzl sgratzl deleted the sgratzl/nodespacing branch September 10, 2019 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants