This commit is contained in:
focp212@naver.com
2025-10-17 17:35:11 +09:00
parent dc6d80eb81
commit 0382fa8248
2 changed files with 13 additions and 8 deletions

View File

@@ -23,16 +23,15 @@ export const QnaListPage = () => {
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
entries.forEach((entry: IntersectionObserverEntry) => {
if(onActionIntersect){
if(entry.isIntersecting){
console.log('Element is now intersecting with the root.');
if(entry.isIntersecting){
console.log('Element is now intersecting with the root. [' + onActionIntersect + ']');
if(onActionIntersect){
callList();
}
else{
console.log('Element is no longer intersecting with the root.');
}
}
}
else{
console.log('Element is no longer intersecting with the root.');
}
});
};