From ec38fafeab6c80dd45bc0e8f29598eeaed43f202 Mon Sep 17 00:00:00 2001 From: Hakadao Date: Tue, 23 Jan 2024 01:34:32 +0800 Subject: [PATCH] fix: top bar not showing when reaching the top of the moments page (#205) --- src/components/TopBar/TopBar.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/TopBar/TopBar.vue b/src/components/TopBar/TopBar.vue index 007aa951..70c74f3b 100644 --- a/src/components/TopBar/TopBar.vue +++ b/src/components/TopBar/TopBar.vue @@ -143,6 +143,9 @@ function handleScroll() { scrollTop.value = document.documentElement.scrollTop } + if (scrollTop.value === 0) + toggleTopBarVisible(true) + if (settings.value.autoHideTopBar && !hoveringTopBar.value && scrollTop.value !== 0) { if (scrollTop.value > oldScrollTop.value) toggleTopBarVisible(false)