[backport core/1.41] fix: prevent animated preview duplication on Vue↔Litegraph switch (#10030)

Backport of #9938 to `core/1.41`

Automatically created by backport workflow.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-10030-backport-core-1-41-fix-prevent-animated-preview-duplication-on-Vue-Litegraph-switch-3256d73d365081218805dfbf40533985)
by [Unito](https://www.unito.io)

Co-authored-by: Christian Byrne <cbyrne@comfy.org>
This commit is contained in:
Comfy Org PR Bot
2026-03-16 21:48:26 +09:00
committed by GitHub
parent ac15c8b998
commit 6a2723288c

View File

@@ -30,7 +30,8 @@ export function useNodeAnimatedImage() {
const element = document.createElement('div')
element.appendChild(node.imgs[0])
const widget = node.addDOMWidget(ANIM_PREVIEW_WIDGET, 'img', element, {
hideOnZoom: false
hideOnZoom: false,
canvasOnly: true
})
node.overIndex = 0