sdfxai / sdfx

The ultimate no-code platform to build and share AI apps with beautiful UI.
https://sdfx.ai
GNU Affero General Public License v3.0
396 stars 25 forks source link

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

Open morgan55555 opened 5 months ago

morgan55555 commented 5 months ago

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