valaxy 0.18.7 → 0.18.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,12 +48,9 @@ export function useActiveAnchor(
48
48
 
49
49
  const scrollY = window.scrollY
50
50
  const innerHeight = window.innerHeight
51
- const offsetHeight = container.value.offsetHeight
51
+ const offsetHeight = document.body.offsetHeight
52
52
  const isBottom = Math.abs(scrollY + innerHeight - offsetHeight) < 1
53
53
 
54
- // console.log(scrollY, innerHeight, offsetHeight)
55
- // console.log(isBottom)
56
-
57
54
  // page bottom - highlight last one
58
55
  if (anchors.length && isBottom) {
59
56
  activateLink(anchors[anchors.length - 1].hash)