mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-22 13:53:43 -04:00
Fixed back-top-top button not disappearing when using sticky navigation tabs
This commit is contained in:
@@ -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()
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user