From 93db12935b6ec61109b67014e856252a8996465a Mon Sep 17 00:00:00 2001 From: hannesrudolph Date: Wed, 6 Aug 2025 11:48:08 -0700 Subject: [PATCH] fix: improve scroll lock behavior while maintaining memory efficiency - Use dynamic increaseViewportBy bottom value based on scroll position - When at bottom, use larger value (10,000px) to maintain scroll lock - When scrolled up, use smaller value (1,000px) for memory efficiency - Add followOutput='smooth' for better scroll behavior - Fixes scroll lock issues introduced in PR #6697 --- webview-ui/src/components/chat/ChatView.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/webview-ui/src/components/chat/ChatView.tsx b/webview-ui/src/components/chat/ChatView.tsx index e73ac67701..0c005d0db3 100644 --- a/webview-ui/src/components/chat/ChatView.tsx +++ b/webview-ui/src/components/chat/ChatView.tsx @@ -1887,7 +1887,12 @@ const ChatViewComponent: React.ForwardRefRenderFunction { @@ -1899,6 +1904,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction