Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

allows touch drag

ltdrdata7ada9e7d85f9
diff --git a/web/scripts/app.js b/web/scripts/app.js
index 87c5e30ca..ef3b44c83 100644
--- a/web/scripts/app.js
+++ b/web/scripts/app.js
@@ -902,7 +902,9 @@ export class ComfyApp {
await this.#loadExtensions();
// Create and mount the LiteGraph in the DOM
- const canvasEl = (this.canvasEl = Object.assign(document.createElement("canvas"), { id: "graph-canvas" }));
+ const mainCanvas = document.createElement("canvas")
+ mainCanvas.style.touchAction = "none"
+ const canvasEl = (this.canvasEl = Object.assign(mainCanvas, { id: "graph-canvas" }));
canvasEl.tabIndex = "1";
document.body.prepend(canvasEl);