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

Backport of #9938 to `cloud/1.41`

Automatically created by backport workflow.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-10031-backport-cloud-1-41-fix-prevent-animated-preview-duplication-on-Vue-Litegraph-switch-3256d73d3650812882a3cd7ef0f121c1)
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:32 +09:00
committed by GitHub
parent 765ae28c53
commit 9c93f11abe

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