Merge branch 'patch-21' of https://github.com/GalacticHypernova/nuxt into patch-21

This commit is contained in:
tbitw2549 2024-06-14 19:45:38 +03:00
commit d6e475ec0d

View File

@ -27,7 +27,7 @@ export function useIntersectionObserver (options?: Partial<IntersectionObserverI
const isVisible = entry.isIntersecting || entry.intersectionRatio > 0
if (isVisible && callback) { callback() }
}
},defu(options ?? {},{root: null, rootMargin: "0px", threshold: 0}))
}, defu(options ?? {},{root: null, rootMargin: "0px", threshold: 0}))
}
callbacks.set(element, callback)
observer.observe(element)
@ -46,4 +46,4 @@ export function useIntersectionObserver (options?: Partial<IntersectionObserverI
}
return _observer
}
}