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

Middle click for dragging canvas doesn't work. #8

Open
morgan55555 opened this issue Apr 23, 2024 · 0 comments
Open

Middle click for dragging canvas doesn't work. #8

morgan55555 opened this issue Apr 23, 2024 · 0 comments

Comments

@morgan55555
Copy link

Drag'n'drop canvas with middle mouse click doesn't work.
"if (LiteGraph.middle_click_slot_add_default_node)" at line 803 in CanvasEvents.ts completely blocking drag'n'drop, 'cause it's condition is "else if".
Fixed it locally by adding "skip_action = true;" to middle click node adding code and removed "else", but not sure, JS is not my favorite language.
CanvasEvents.zip

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

1 participant