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

Drag nodes not working after double click #565

Closed
apitts opened this issue May 6, 2015 · 4 comments
Closed

Drag nodes not working after double click #565

apitts opened this issue May 6, 2015 · 4 comments
Labels

Comments

@apitts
Copy link
Contributor

apitts commented May 6, 2015

To replicate the issue: go to the drag-nodes example file, double click anywhere on the stage (you will see sigma zoom as that is the default on doubleClickStage) and then attempt to drag a node. The node does not move but will move once the mouse is released.

Does anyone have any ideas what is causing this? Any thoughts on a fix? I have tried disabling zoom on double click and that doesn't seem to make a difference. My thinking is that doubleClickStage somehow interferes with subsequent drag events.

Thanks!

@apitts
Copy link
Contributor Author

apitts commented May 8, 2015

Clarification: I believe this could be a bug in sigma.core as it affects both the drag nodes plugin as well as the linkurious lasso plugin in a similar way.

@luziusmeisser
Copy link

I think this might be related to issue 552. Generally, dragging does not seem to work if the graph gets updated between the time when the mouse was moved onto the node and the time the drag is started. You can try this with the attached example.
index.zip

To reproduce, unpack the index.html file for that example and make sure all the referenced .js files are available. Then run it. Initially, dragging works nicely. But then click "start" to add a new edge every 500ms and dragging becomes a matter of luck.

@Falagor
Copy link

Falagor commented Apr 13, 2021

Has there been any solution or workaround to this?

I am binding custom event to doubleClickNode and it has similar effect as OP has.

I will check the code on dragNodes plugin soon but:

  • it might be over my level to find and edit it in a proper way
  • mayby there already is a solution so i would be prying open door here

@stale
Copy link

stale bot commented Oct 8, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Oct 8, 2021
@stale stale bot closed this as completed Oct 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants