Fixed back-top-top button not disappearing when using sticky navigation tabs

This commit is contained in:
squidfunk
2022-01-21 18:56:43 +01:00
parent bfba84647d
commit 76d73b249f
4 changed files with 6 additions and 6 deletions

View File

@@ -98,7 +98,7 @@ export function watchBackToTop(
.pipe(
map(({ offset: { y } }) => y),
bufferCount(2, 1),
map(([a, b]) => a > b),
map(([a, b]) => a > b && b > 0),
distinctUntilChanged()
)