Fix group title detect (#118)

This commit is contained in:
Chenlei Hu
2024-09-04 12:37:53 -04:00
committed by GitHub
parent 7897ffdaba
commit 05ce780cee

View File

@@ -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));
}
/**