fix(theme): handle outline bottom overscroll (#5375)

pull/5388/head
Bjorn Lu 3 weeks ago committed by GitHub
parent 72534af30e
commit 3fe901dea9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -128,7 +128,7 @@ export function useActiveAnchor(
const scrollY = window.scrollY
const innerHeight = window.innerHeight
const offsetHeight = document.body.offsetHeight
const isBottom = Math.abs(scrollY + innerHeight - offsetHeight) < 1
const isBottom = scrollY + innerHeight - offsetHeight >= 0
// resolvedHeaders may be repositioned, hidden or fix positioned
const headers = resolvedHeaders

Loading…
Cancel
Save