Skip to content

Commit

Permalink
Fix group title detect (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei authored Sep 4, 2024
1 parent 7897ffd commit 05ce780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/litegraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

/**
Expand Down

0 comments on commit 05ce780

Please sign in to comment.