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

Keep node selected when dragging canvas #817

Open
gpack opened this issue Jan 30, 2024 · 2 comments
Open

Keep node selected when dragging canvas #817

gpack opened this issue Jan 30, 2024 · 2 comments
Assignees

Comments

@gpack
Copy link

gpack commented Jan 30, 2024

Is it possible to keep a particular node selected, while dragging around the canvas ?

Example: click on a node, then pan/move the canvas and keep the node selected/highlighted ?

Because the current way, once you drag the canvas any node that was selected is automatically deselected.

@jerosoler jerosoler self-assigned this Jan 31, 2024
@jerosoler
Copy link
Owner

Hi @gpack

Currently the library does not support it.

Some applications by pressing space key can drag.

Others have an autopan when approaching the edge of the browser.

I think the best option would be to look at implementing an autopan.

In this issue you can find some information to try to do it.

@gpack
Copy link
Author

gpack commented Jan 31, 2024

I understand. I'll look into some other options.
Thanks Jero.

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

2 participants