@wyxos/vibe 1.6.23 → 1.6.25

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.
@@ -31,7 +31,7 @@ export function useMasonryScroll({
31
31
  let cleanupInProgress = false
32
32
  let lastScrollTop = 0
33
33
 
34
- async function handleScroll(precomputedHeights?: number[]) {
34
+ async function handleScroll(precomputedHeights?: number[], forceCheck = false) {
35
35
  if (!container.value) return
36
36
 
37
37
  const columnHeights = precomputedHeights ?? calculateColumnHeights(masonry.value, columns.value)
@@ -47,7 +47,8 @@ export function useMasonryScroll({
47
47
  : Math.max(0, tallest + threshold)
48
48
  const nearBottom = scrollerBottom >= triggerPoint
49
49
 
50
- if (nearBottom && isScrollingDown && !isLoading.value) {
50
+ // Allow loading if near bottom and either scrolling down OR forceCheck is true (for restoration)
51
+ if (nearBottom && (isScrollingDown || forceCheck) && !isLoading.value) {
51
52
  await loadNext()
52
53
  await nextTick()
53
54
  return