-
@@ -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();