mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 10:42:44 +00:00
Remove click handler, reset only scroll
This commit is contained in:
@@ -83,8 +83,7 @@ function nodeToNodeData(node: LGraphNode) {
|
|||||||
? undefined
|
? undefined
|
||||||
: {
|
: {
|
||||||
iconClass: 'icon-[lucide--image]',
|
iconClass: 'icon-[lucide--image]',
|
||||||
label: t('Click to browse or drag an image'),
|
label: t('Drag and drop an image')
|
||||||
onClick: node.widgets?.[1]?.callback
|
|
||||||
}
|
}
|
||||||
//of VueNodeData, only widgets is actually used
|
//of VueNodeData, only widgets is actually used
|
||||||
return {
|
return {
|
||||||
@@ -174,7 +173,6 @@ function resetOutputsScroll() {
|
|||||||
//TODO need to also prune outputs entries?
|
//TODO need to also prune outputs entries?
|
||||||
resetInfiniteScroll()
|
resetInfiniteScroll()
|
||||||
outputsRef.value?.scrollTo(0, 0)
|
outputsRef.value?.scrollTo(0, 0)
|
||||||
activeLoad.value = [-1, -1]
|
|
||||||
}
|
}
|
||||||
const { y: outputScrollState } = useScroll(outputsRef)
|
const { y: outputScrollState } = useScroll(outputsRef)
|
||||||
|
|
||||||
@@ -590,9 +588,7 @@ useEventListener(document.body, 'keydown', (e: KeyboardEvent) => {
|
|||||||
src="/assets/images/comfy-logo-mono.svg"
|
src="/assets/images/comfy-logo-mono.svg"
|
||||||
/>
|
/>
|
||||||
<Button
|
<Button
|
||||||
v-if="
|
v-if="outputScrollState"
|
||||||
outputScrollState || activeLoad[0] !== -1 || activeLoad[1] !== -1
|
|
||||||
"
|
|
||||||
class="absolute bottom-4 left-4 p-3 size-10 bg-base-foreground"
|
class="absolute bottom-4 left-4 p-3 size-10 bg-base-foreground"
|
||||||
@click="resetOutputsScroll"
|
@click="resetOutputsScroll"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user