jerosoler / Drawflow

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

Keep node selected when dragging canvas #817

Open gpack opened 9 months ago

gpack commented 9 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 9 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 9 months ago

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