litegraph dev forgot to remove the title height from the collision if it's hidden

This commit is contained in:
comfyanonymous
2023-04-10 02:42:35 -04:00
parent db34e87d6c
commit 4e0670ffb1

View File

@@ -1654,7 +1654,8 @@
var nRet = null;
for (var i = nodes_list.length - 1; i >= 0; i--) {
var n = nodes_list[i];
if (n.isPointInside(x, y, margin)) {
var skip_title = n.constructor.title_mode == LiteGraph.NO_TITLE;
if (n.isPointInside(x, y, margin, skip_title)) {
// check for lesser interest nodes (TODO check for overlapping, use the top)
/*if (typeof n == "LGraphGroup"){
nRet = n;