mirror of
https://github.com/open-webui/open-webui
synced 2025-01-18 08:40:58 +00:00
Default to true
This commit is contained in:
parent
948d29b676
commit
482a7723b2
@ -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 New Issue
Block a user