Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
Signed-off-by: CTomlyn <[email protected]>
  • Loading branch information
tomlyn committed Dec 17, 2024
1 parent c5c0160 commit 19f0ad5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default class SVGCanvasUtilsDragNewLink {
this.startInputPortNewLink(d3Event, d, node);

} else if (this.ren.activePipeline.getObjectTypeName(d) === "comment") {
this.startCommentNewLink(d);
this.startCommentNewLink(d3Event, d);
}
}

Expand Down Expand Up @@ -111,7 +111,7 @@ export default class SVGCanvasUtilsDragNewLink {
}

// Initialize this.drawingNewLinkData when dragging a comment port.
startCommentNewLink(comment) {
startCommentNewLink(d3Event, comment) {
const srcObj = this.ren.activePipeline.getComment(comment.id);
this.drawingNewLinkData = {
srcObj: srcObj,
Expand All @@ -120,6 +120,7 @@ export default class SVGCanvasUtilsDragNewLink {
x: comment.x_pos - this.ren.canvasLayout.commentHighlightGap,
y: comment.y_pos - this.ren.canvasLayout.commentHighlightGap
},
mousePos: { x: d3Event.x, y: d3Event.y },
linkArray: []
};
}
Expand Down

0 comments on commit 19f0ad5

Please sign in to comment.