We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a9e4d9 commit 98e45afCopy full SHA for 98e45af
src/client/theme-default/composables/outline.ts
@@ -105,7 +105,7 @@ export function useActiveAnchor(
105
const scrollY = window.scrollY
106
const innerHeight = window.innerHeight
107
const offsetHeight = document.body.offsetHeight
108
- const isBottom = scrollY + innerHeight === offsetHeight
+ const isBottom = Math.abs(scrollY + innerHeight - offsetHeight) < 1
109
110
// page bottom - highlight last one
111
if (anchors.length && isBottom) {
0 commit comments