jerosoler / Drawflow

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

Is there any way to make nodes un-draggable? #904

Open ckesisis opened 6 days ago

ckesisis commented 6 days ago

Hi,

I want to disable the drag functionality of the nodes. Additionally, whenever a node is added, I would like it to be placed directly below the previous one.

The user should only be able to scroll vertically, not horizontally.

Is there a way to achieve this?

jerosoler commented 6 days ago

For dragging nodes you have several methods. In the demo you can try by touching the lock at the bottom right.

Try the method:

editor.editor_mode = 'fixed'; // Only scroll

For vertical connections see: