diff --git a/package-lock.json b/package-lock.json index f7317a38f..1bffc8051 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.3.31", "dependencies": { "@atlaskit/pragmatic-drag-and-drop": "^1.3.1", - "@comfyorg/litegraph": "^0.8.17", + "@comfyorg/litegraph": "^0.8.18", "@primevue/themes": "^4.0.5", "@vueuse/core": "^11.0.0", "axios": "^1.7.4", @@ -1911,9 +1911,9 @@ "dev": true }, "node_modules/@comfyorg/litegraph": { - "version": "0.8.17", - "resolved": "https://registry.npmjs.org/@comfyorg/litegraph/-/litegraph-0.8.17.tgz", - "integrity": "sha512-koNvj7Bei1MWELlLC9OuvGb2TGTzfqxExYbl/m0bK6taoLk82Xu3mnHz2T9iuxZMih+jwnriI6nNjCFvu1jTfA==", + "version": "0.8.18", + "resolved": "https://registry.npmjs.org/@comfyorg/litegraph/-/litegraph-0.8.18.tgz", + "integrity": "sha512-o00MjRX0Env8L8ppjjcE0MEtlgv1mT7D9mPtYzYkUm94u1jnBNpf55q7mXqgp3FkoH9lzpY2JyO87vfVXlgA9w==", "license": "MIT" }, "node_modules/@cspotcode/source-map-support": { diff --git a/package.json b/package.json index 16e54d4f4..6df78e5b8 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,7 @@ }, "dependencies": { "@atlaskit/pragmatic-drag-and-drop": "^1.3.1", - "@comfyorg/litegraph": "^0.8.17", + "@comfyorg/litegraph": "^0.8.18", "@primevue/themes": "^4.0.5", "@vueuse/core": "^11.0.0", "axios": "^1.7.4", diff --git a/src/scripts/app.ts b/src/scripts/app.ts index 69b07f865..cb89b9e8d 100644 --- a/src/scripts/app.ts +++ b/src/scripts/app.ts @@ -1219,29 +1219,6 @@ export class ComfyApp { } const res = origProcessMouseDown.apply(this, arguments) - - this.selected_group_moving = false - - if (this.selected_group && !this.selected_group_resizing) { - var font_size = - this.selected_group.font_size || LiteGraph.DEFAULT_GROUP_FONT_SIZE - var height = font_size * 1.4 - - // Move group by header - if ( - LiteGraph.isInsideRectangle( - e.canvasX, - e.canvasY, - this.selected_group.pos[0], - this.selected_group.pos[1], - this.selected_group.size[0], - height - ) - ) { - this.selected_group_moving = true - } - } - return res } const origProcessMouseMove = LGraphCanvas.prototype.processMouseMove @@ -1269,27 +1246,7 @@ export class ComfyApp { return } - const orig_selected_group = this.selected_group - - if ( - this.selected_group && - !this.selected_group_resizing && - !this.selected_group_moving - ) { - this.selected_group = null - } - - const res = origProcessMouseMove.apply(this, arguments) - - if ( - orig_selected_group && - !this.selected_group_resizing && - !this.selected_group_moving - ) { - this.selected_group = orig_selected_group - } - - return res + return origProcessMouseMove.apply(this, arguments) } }