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

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

Open
ckesisis opened this issue Oct 5, 2024 · 1 comment
Open

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

ckesisis opened this issue Oct 5, 2024 · 1 comment
Assignees

Comments

@ckesisis
Copy link

ckesisis commented Oct 5, 2024

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
Copy link
Owner

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:

@jerosoler jerosoler self-assigned this Oct 5, 2024
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