Merge branch 'comfyanonymous:master' into feature/latent-store

This commit is contained in:
Dr.Lt.Data 2023-05-17 02:07:35 +09:00 committed by GitHub
commit 4fd729f967
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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);

View File

@ -19,7 +19,6 @@ export function addValueControlWidget(node, targetWidget, defaultValue = "random
var v = valueControl.value;
console.log(targetWidget);
if (targetWidget.type == "combo" && v !== "fixed") {
let current_index = targetWidget.options.values.indexOf(targetWidget.value);
let current_length = targetWidget.options.values.length;