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

I want to prevent nodes from disappearing from the screen. #1338

Open
rainingdaewoo opened this issue Feb 8, 2023 · 2 comments
Open

I want to prevent nodes from disappearing from the screen. #1338

rainingdaewoo opened this issue Feb 8, 2023 · 2 comments

Comments

@rainingdaewoo
Copy link

When i move the nodes while dragging the mouse, they disappear from the screen. I want to prevent nodes from disappearing from the screen.

@joaopfg
Copy link

joaopfg commented Mar 1, 2023

@rainingdaewoo I also have this problem sometimes when drawing the graph using ForceAtlas algorithm. Did you find a way to prevent it ?

@BatPandaPancake
Copy link

@joaopfg ForceAtlas2 bugs out for me in that manner when you pan the camera before there's anything in the graph. Once you add nodes it goes crazy and disappears. I think it has to do with some viewport bs and their fake scaling. I "fixed" it by adding an overlay that blocks mouse input to the graph when its node count is 0. This might be fixable by only adding nodes within viewport coordinates, but I haven't explored that yet.

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

No branches or pull requests

3 participants