From 05ce780cee23070f4c510160bd7451f5733626ff Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Wed, 4 Sep 2024 12:37:53 -0400 Subject: [PATCH] Fix group title detect (#118) --- src/litegraph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/litegraph.js b/src/litegraph.js index 24923d59c..4200d33e8 100755 --- a/src/litegraph.js +++ b/src/litegraph.js @@ -1639,7 +1639,7 @@ const globalExport = {}; * @return {LGraphGroup | null} the group or null */ getGroupOnPos(x, y, {margin = 2} = {}) { - return this._groups.reverse().find(g => g.isPointInside(x, y, margin)); + return this._groups.reverse().find(g => g.isPointInside(x, y, margin, /* skip_title */true)); } /**