diff --git a/src/views/text-data-viewer/textDataViewer.vue b/src/views/text-data-viewer/textDataViewer.vue index ce20cc9..cd4538e 100644 --- a/src/views/text-data-viewer/textDataViewer.vue +++ b/src/views/text-data-viewer/textDataViewer.vue @@ -163,14 +163,14 @@ -
+

-
+

@@ -265,10 +265,13 @@ const isHexStringValid = ref(false); const uartInputTextBox = ref("") const store = useDataViewerStore(); +const RxHexDumpRef = ref(document.body); + let lastScrollHeight = 0; const mutationObserver = new MutationObserver(() => { if (store.forceToBottom) { + lastScrollHeight = vuetifyVirtualScrollBarRef.value.scrollTop; scrollToBottom(); } }); @@ -427,6 +430,12 @@ watch(() => store.filterChanged, (value) => { } }) +watch(() => store.RxRemainHexdump, value => { + if (value) { + RxHexDumpRef.value.scrollTop = RxHexDumpRef.value.scrollHeight; + } +}) + watch(() => store.showVirtualScroll, () => { if (store.forceToBottom) { scrollToBottom();