From 0063bf618dae70b906244afdfbe873dd93517a7d Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Tue, 15 Apr 2025 10:59:56 -0400 Subject: [PATCH] [Bug] Show widget slot when slot is hovered (#929) Resolves https://github.com/Comfy-Org/litegraph.js/issues/925 https://github.com/user-attachments/assets/81bd6ce3-6feb-456a-9bb3-e512008b2e63 --- src/LGraphNode.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/LGraphNode.ts b/src/LGraphNode.ts index b904e7d7a..f283bb8c8 100644 --- a/src/LGraphNode.ts +++ b/src/LGraphNode.ts @@ -3593,6 +3593,7 @@ export class LGraphNode implements Positionable, IPinnable, IColorable { // - the slot is valid during link drop // - the slot is connected const showSlot = !isWidgetInputSlot(slot) || + this.#isMouseOverSlot(slot) || this.#isMouseOverWidget(this.getWidgetFromSlot(slot)!) || (fromSlot && slotInstance.isValidTarget(fromSlot)) || slotInstance.isConnected()