more hacky: Allow right click

This commit is contained in:
pythongosssss
2023-03-25 16:40:25 +00:00
parent aab4f98468
commit bd72658209
+1 -1
View File
@@ -60,7 +60,7 @@ app.registerExtension({
const getGroupOnPos = LGraph.prototype.getGroupOnPos;
LGraph.prototype.getGroupOnPos = function () {
const r = getGroupOnPos.apply(this, arguments);
if (r && r[LOCKED]) return null;
if (r && r[LOCKED] && !(new Error()).stack.includes("processContextMenu")) return null;
return r;
};