Skip to content

Commit

Permalink
Fix custom widget pointerup receives NaN pos (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
webfiltered authored Nov 27, 2024
1 parent b8dbca5 commit 304e229
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LGraphCanvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2677,7 +2677,7 @@ export class LGraphCanvas {
if (widget.mouse) {
const { eUp } = pointer
const { canvasX, canvasY } = eUp
widget.mouse(eUp, [canvasX - node[0], canvasY - node[1]], node)
widget.mouse(eUp, [canvasX - node.pos[0], canvasY - node.pos[1]], node)
}

this.node_widget = null
Expand Down

0 comments on commit 304e229

Please sign in to comment.