mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 12:55:19 +00:00
Default to true
This commit is contained in:
parent
948d29b676
commit
482a7723b2
1 changed files with 2 additions and 2 deletions
|
|
@ -146,7 +146,7 @@
|
||||||
|
|
||||||
await tick();
|
await tick();
|
||||||
|
|
||||||
if ($settings.scrollOnBranchChange) {
|
if ($settings?.scrollOnBranchChange ?? true) {
|
||||||
const element = document.getElementById('messages-container');
|
const element = document.getElementById('messages-container');
|
||||||
autoScroll = element.scrollHeight - element.scrollTop <= element.clientHeight + 50;
|
autoScroll = element.scrollHeight - element.scrollTop <= element.clientHeight + 50;
|
||||||
|
|
||||||
|
|
@ -197,7 +197,7 @@
|
||||||
|
|
||||||
await tick();
|
await tick();
|
||||||
|
|
||||||
if ($settings.scrollOnBranchChange) {
|
if ($settings?.scrollOnBranchChange ?? true) {
|
||||||
const element = document.getElementById('messages-container');
|
const element = document.getElementById('messages-container');
|
||||||
autoScroll = element.scrollHeight - element.scrollTop <= element.clientHeight + 50;
|
autoScroll = element.scrollHeight - element.scrollTop <= element.clientHeight + 50;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue