fix: keep scroll lock user-controlled during thinking
This commit is contained in:
parent
61b6b2d492
commit
ce5032cef4
@ -835,7 +835,6 @@ export async function initializeLegacySocket(ctx: any) {
|
|||||||
streamingState.activeTextAction = null;
|
streamingState.activeTextAction = null;
|
||||||
ctx.stopRequested = false;
|
ctx.stopRequested = false;
|
||||||
ctx.streamingMessage = true; // 确保设置为流式状态
|
ctx.streamingMessage = true; // 确保设置为流式状态
|
||||||
ctx.chatEnableAutoScroll();
|
|
||||||
ctx.scrollToBottom();
|
ctx.scrollToBottom();
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -853,8 +852,7 @@ export async function initializeLegacySocket(ctx: any) {
|
|||||||
if (result && result.blockId) {
|
if (result && result.blockId) {
|
||||||
const blockId = result.blockId;
|
const blockId = result.blockId;
|
||||||
ctx.chatExpandBlock(blockId);
|
ctx.chatExpandBlock(blockId);
|
||||||
// 开始思考时自动锁定滚动到底部
|
// 开始思考时尝试滚动到底部,但不改变用户锁定选择
|
||||||
ctx.chatEnableAutoScroll();
|
|
||||||
ctx.scrollToBottom();
|
ctx.scrollToBottom();
|
||||||
ctx.chatSetThinkingLock(blockId, true);
|
ctx.chatSetThinkingLock(blockId, true);
|
||||||
ctx.$forceUpdate();
|
ctx.$forceUpdate();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user