From a2cdd06afc4610ee97db24c8f2b84e234473e827 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Tue, 17 Jun 2025 15:29:40 -0700 Subject: [PATCH] Revert "Workaround for jittering while typing on firefox" This reverts commit b4edfce9939c1453ec7c00d946416f348af7acc1. --- js/main.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/main.js b/js/main.js index a370159d..f018e332 100644 --- a/js/main.js +++ b/js/main.js @@ -182,8 +182,7 @@ const observer = new MutationObserver(function(mutations) { doSyntaxHighlighting(); - const isUserTyping = document.activeElement && document.activeElement.closest("#chat-input") && !targetElement.classList.contains("_generating"); - if (!window.isScrolled && !isUserTyping && targetElement.scrollTop !== targetElement.scrollHeight) { + if (!window.isScrolled && targetElement.scrollTop !== targetElement.scrollHeight) { targetElement.scrollTop = targetElement.scrollHeight; }