Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

Drag one node over the other #2653

Closed
dubacher opened this issue Jan 29, 2017 · 4 comments
Closed

Drag one node over the other #2653

dubacher opened this issue Jan 29, 2017 · 4 comments

Comments

@dubacher
Copy link

dubacher commented Jan 29, 2017

I would like to create new edges between nodes by dragging one node over another. "Dropping" one node over another would create a new edge between them. I had the following idea to implement this feature.

  1. When drag starts I turn off the physics
  2. I listen to dragEnd and hoverNode events. Because the physics is turned off I can drag one node over another one.
  3. As soon as dragEnd event is triggered I link the dragged node with the one I'am over at this very moment.
  4. Turn on the physics again.

Unfortunately this doesn't work as the hover event does not catch the nodes I'am hovering over when dragging a node at the same time.

Question: Is there another way to implement this feature as it doesn't seem to work out with the approach I described above. I wonder whether there is a function "give me all nodes a given node is currently collisioning with".

Thanks for any help.

@dubacher
Copy link
Author

dubacher commented Feb 8, 2017

Is it possible to get answer to my question? Let me know in case I need to express my question more clearly.

@wimrijnders
Copy link
Contributor

Is it possible to get answer to my question? Let me know in case I need to express my question more clearly.

I'm truly sorry about the delay; there are so many issues that I have to triage. I'm afraid your issue is one of the ones that I keep on skipping. It's still here, so it isn't forgotten.

@wimrijnders
Copy link
Contributor

@dubacher Do you still think it is worthwhile to keep this issue open?

@wimrijnders
Copy link
Contributor

Closed due to inactivity. Feel free to reopen if this is still relevant.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants