From 975fcd27349d55c5f9aba3d6925cffe84475d848 Mon Sep 17 00:00:00 2001 From: Haydar Metin Date: Mon, 4 Mar 2024 09:56:59 +0100 Subject: [PATCH] Handle frozen case only in auto-append mode --- src/webview/components/memory-table.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/webview/components/memory-table.tsx b/src/webview/components/memory-table.tsx index 1bc7ed0..3577927 100644 --- a/src/webview/components/memory-table.tsx +++ b/src/webview/components/memory-table.tsx @@ -227,13 +227,13 @@ export class MemoryTable extends React.PureComponent this.props.activeReadArguments.count) { this.datatableRef.current?.resetScroll(); } - } - // If we disable frozen, then we need to check the current position of the scrollbar and if necessary append more memory - if (prevProps.isFrozen && !this.props.isFrozen) { - const wrapper = this.datatableWrapper; - if (wrapper) { - this.appendMoreMemoryOnListEnd(wrapper); + // If we disable frozen, then we need to check the current position of the scrollbar and if necessary append more memory + if (prevProps.isFrozen && !this.props.isFrozen) { + const wrapper = this.datatableWrapper; + if (wrapper) { + this.appendMoreMemoryOnListEnd(wrapper); + } } } }