mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-12-06 07:12:10 +01:00
Revert "Workaround for jittering while typing on firefox"
This reverts commit b4edfce993.
This commit is contained in:
parent
2d37602382
commit
a2cdd06afc
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue