mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-06-12 14:32:08 +08:00
Merge branch 'patch/touch' of https://github.com/ltdrdata/ComfyUI
This commit is contained in:
commit
6a12094345
@ -902,7 +902,9 @@ export class ComfyApp {
|
|||||||
await this.#loadExtensions();
|
await this.#loadExtensions();
|
||||||
|
|
||||||
// Create and mount the LiteGraph in the DOM
|
// 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";
|
canvasEl.tabIndex = "1";
|
||||||
document.body.prepend(canvasEl);
|
document.body.prepend(canvasEl);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user