mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-25 09:14:25 +00:00
nit
This commit is contained in:
@@ -20,14 +20,12 @@ interface SlotInteractionOptions {
|
||||
nodeId: string
|
||||
index: number
|
||||
type: 'input' | 'output'
|
||||
readonly?: boolean
|
||||
}
|
||||
|
||||
export function useSlotLinkInteraction({
|
||||
nodeId,
|
||||
index,
|
||||
type,
|
||||
readonly
|
||||
type
|
||||
}: SlotInteractionOptions) {
|
||||
const { state, beginDrag, endDrag, updatePointerPosition } =
|
||||
useSlotLinkDragState()
|
||||
@@ -145,7 +143,6 @@ export function useSlotLinkInteraction({
|
||||
}
|
||||
|
||||
const onPointerDown = (event: PointerEvent) => {
|
||||
if (readonly) return
|
||||
if (event.button !== 0) return
|
||||
if (!nodeId) return
|
||||
if (activePointerId !== null) return
|
||||
|
||||
Reference in New Issue
Block a user