mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +00:00
Merge branch 'patch-21' of https://github.com/GalacticHypernova/nuxt into patch-21
This commit is contained in:
commit
d6e475ec0d
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user