Revert "Workaround for jittering while typing on firefox"

This reverts commit b4edfce993.
This commit is contained in:
oobabooga 2025-06-17 15:29:40 -07:00
parent 2d37602382
commit a2cdd06afc

View file

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