UI: Fix scroll jump when toggling thinking blocks during streaming

This commit is contained in:
oobabooga 2026-03-15 09:52:31 -07:00
parent bfea49b197
commit 1a2b840938

View file

@ -420,7 +420,9 @@ function applyMorphdomUpdate(data) {
}, 0);
}
}
autoScrollToBottom();
updateInstructPadding();
autoScrollToBottom();
// Restore scroll state so the browser's layout adjustment
// from the toggle doesn't disable auto-scroll
window.isScrolled = wasScrolled;