From 54ee4445112fb794c1945488498837927b961c0d Mon Sep 17 00:00:00 2001 From: NineKey Date: Sat, 12 Sep 2026 22:18:17 +0800 Subject: [PATCH] Restore prompt editor scrolling --- web/dynamic_loader.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/web/dynamic_loader.js b/web/dynamic_loader.js index 2a94bcf..d38832c 100644 --- a/web/dynamic_loader.js +++ b/web/dynamic_loader.js @@ -651,10 +651,14 @@ app.registerExtension({ setTimeout(patchGraphPaste, 0); } - // DOM widgets sit above the LiteGraph canvas and therefore - // absorb its wheel event. Forward it so canvas zoom remains - // available even while the insertion caret is in this editor. + // Keep normal editor scrolling when the prompt overflows. For + // short prompts, pass the wheel through to the canvas so its + // zoom shortcut remains available while typing. composer.addEventListener("wheel", event => { + if (composer.scrollHeight > composer.clientHeight + 1) { + event.stopPropagation(); + return; + } const canvas = app.canvas?.canvas; if (!canvas) return; event.preventDefault();