jerosoler / Drawflow

Simple flow library 🖥️🖱️
https://jerosoler.github.io/Drawflow/
MIT License
4.42k stars 714 forks source link

Keep node selected when dragging canvas #817

Open gpack opened 5 months ago

gpack commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

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