Fix new nodes being added in the wrong place near graph edges (#4211)

This commit is contained in:
Keavon Chambers
2026-06-07 19:22:30 -07:00
committed by GitHub
parent b645871dbc
commit 7a6e4f6f25
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -139,7 +139,7 @@
function createNode(identifier: string) {
if ($nodeGraph.contextMenuInformation === undefined) return;
editor.createNode(identifier, $nodeGraph.contextMenuInformation.contextMenuCoordinates[0], $nodeGraph.contextMenuInformation.contextMenuCoordinates[1]);
editor.createNode(identifier, $nodeGraph.contextMenuInformation.nodeCreationCoordinates[0], $nodeGraph.contextMenuInformation.nodeCreationCoordinates[1]);
}
function nodeBorderMask(nodeWidth: number, primaryInputExists: boolean, exposedSecondaryInputs: number, primaryOutputExists: boolean, exposedSecondaryOutputs: number): string {