Workaround for jittering while typing on firefox

This commit is contained in:
oobabooga 2025-06-17 09:30:03 -07:00
parent 01ef4c61bd
commit b4edfce993

View file

@ -182,7 +182,8 @@ const observer = new MutationObserver(function(mutations) {
doSyntaxHighlighting();
if (!window.isScrolled && targetElement.scrollTop !== targetElement.scrollHeight) {
const isUserTyping = document.activeElement && document.activeElement.closest("#chat-input") && !targetElement.classList.contains("_generating");
if (!window.isScrolled && !isUserTyping && targetElement.scrollTop !== targetElement.scrollHeight) {
targetElement.scrollTop = targetElement.scrollHeight;
}