mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-12 07:10:52 +08:00
Fix for detached graph canvas
This commit is contained in:
parent
2f70faa0aa
commit
e7b09eedcd
@ -446,8 +446,9 @@ export class ComfyApp {
|
||||
}
|
||||
}
|
||||
|
||||
if (this.imgs && this.imgs.length) {
|
||||
const canvas = graph.list_of_graphcanvas[0];
|
||||
const canvas = graph.list_of_graphcanvas[0];
|
||||
|
||||
if (this.imgs && this.imgs.length && canvas != null) {
|
||||
const mouse = canvas.graph_mouse;
|
||||
if (!canvas.pointer_is_down && this.pointerDown) {
|
||||
if (mouse[0] === this.pointerDown.pos[0] && mouse[1] === this.pointerDown.pos[1]) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user