mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 14:30:41 +00:00
[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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user