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

DragNewLinkState bug when pressing down with another mouse button while dragging. #1012

Open
rlsvarinskis opened this issue Jul 18, 2023 · 0 comments

Comments

@rlsvarinskis
Copy link

If I start dragging a link from a node using my left mouse button and then press the middle or right mouse button, I get the following error in DragNewLinkState.ts:48: this.port.createLinkModel is not a function. The link then ends up hanging without ever having called canLinkToPort or checking for allowLooseLinks.

This seems to be because the DragNewLinkState is still active, but the MOUSE_DOWN action assumes it has just been created by clicking on a port.

There's also a similar bug where if I drag a link over an HTML element that is not part of react-diagrams or outside of the window and release my mouse button, the link also ends up hanging without ever checking canLinkToPort or allowLooseLinks.

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

No branches or pull requests

1 participant