From c58ec3a66d936ed66a56d7b540f3296d1bff9985 Mon Sep 17 00:00:00 2001
From: space-nuko <24979496+space-nuko@users.noreply.github.com>
Date: Sun, 12 Feb 2023 01:59:54 -0800
Subject: [PATCH] Add lock canvas checkbox
---
webshit/index.html | 5 +++++
webshit/litegraph.core.js | 2 --
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/webshit/index.html b/webshit/index.html
index 071c4b912..0e9d32fd6 100644
--- a/webshit/index.html
+++ b/webshit/index.html
@@ -556,6 +556,10 @@ function clearQueue() {
.catch(error => console.error(error));
}
+function lockCanvas(cb) {
+ canvas.allow_dragnodes = !cb.checked;
+}
+
@@ -594,6 +598,7 @@ function clearQueue() {
+Lock Canvas