-
Notifications
You must be signed in to change notification settings - Fork 581
Subgraph io fixes #12281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subgraph io fixes #12281
Changes from all commits
bc8c834
0119fff
94112e0
1425775
23c5d31
5cce74e
8d850a8
590e09a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -411,12 +411,20 @@ export function useSlotLinkInteraction({ | |
| } | ||
| const raf = createRafBatch(processPointerMoveFrame) | ||
|
|
||
| const canvas = app.canvas | ||
| const node = canvas.graph?.getNodeById(nodeId) | ||
|
AustinMroz marked this conversation as resolved.
|
||
| const handlePointerMove = (event: PointerEvent) => { | ||
| if (!pointerSession.matches(event)) return | ||
| event.stopPropagation() | ||
|
|
||
| autoPan?.updatePointer(event.clientX, event.clientY) | ||
|
|
||
| if (canvas.subgraph && node) { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we also guard on canvas.linkConnector.isConnecting or potentially the direction we are linking to not need to call both input & output
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The 'handlePointerMove' function this is inside only fires while connecting links.
I had intentionally included both for parity with the litegraph implementation, as it will also dim links on the other IONode. From further review, the litegraph implementations were half-baked and did not filter on input/output. I have corrected this as well. |
||
| augmentToCanvasPointerEvent(event, node, canvas) | ||
| canvas.subgraph.inputNode.onPointerMove(event) | ||
| canvas.subgraph.outputNode.onPointerMove(event) | ||
| } | ||
|
|
||
| dragContext.pendingPointerMove = { | ||
| clientX: event.clientX, | ||
| clientY: event.clientY, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.