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

Fix position when node is dragged ("sticky") #29

Merged
merged 4 commits into from
Aug 22, 2023

Conversation

vinloo
Copy link
Contributor

@vinloo vinloo commented Jun 5, 2023

This PR fixes a node's position when it is dragged, like requested in #18 and also discussed in #10 .

I did this by updating d3 from version 3 to version 4 and changing to code accordingly.

Now the graphs behave as in this example.

@erdogant
Copy link
Owner

Awsome contribution! It took me a while but I will try to merge it!

@erdogant erdogant merged commit f2eb354 into erdogant:master Aug 22, 2023
@erdogant
Copy link
Owner

I merged it but the threshold is unfortunately broken now. Can you remember what you have changed that would cause this to not work?

@vinloo
Copy link
Contributor Author

vinloo commented Aug 23, 2023

That's odd, it works fine for me. It might have something to do with the other recently merged PRs. I will take a look at it this weekend and open a new PR.

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.

2 participants