From 28e86820d63e3809c382d175d451d9a8b6a38ddf Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Sun, 16 Feb 2025 20:24:59 -0500 Subject: [PATCH] Trigger LGraphCanvas.onSelectionChange on drag-select (#537) --- src/LGraphCanvas.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/LGraphCanvas.ts b/src/LGraphCanvas.ts index 8aedbb01e7..571e36bad7 100644 --- a/src/LGraphCanvas.ts +++ b/src/LGraphCanvas.ts @@ -3711,6 +3711,7 @@ export class LGraphCanvas implements ConnectionColorContext { } for (const item of notSelected) this.select(item) } + this.onSelectionChange?.(this.selected_nodes) } /**