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
Comments
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. |
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. 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. |
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:
|
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. |
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!
The text was updated successfully, but these errors were encountered: