This commit is contained in:
tamaina 2023-07-17 09:19:42 +00:00
parent b446bfb0b6
commit bec510e37d

View file

@ -185,7 +185,7 @@ watch([() => props.pagination.reversed, $$(scrollableElement)], () => {
weakBacked = entries[0].isIntersecting;
}, {
root: scrollableElement,
rootMargin: props.pagination.reversed ? '-115% 0px 115% 0px' : '115% 0px -115% 0px',
rootMargin: props.pagination.reversed ? '-130% 0px 130% 0px' : '130% 0px -130% 0px',
threshold: [0],
});
console.log('new scrollObserver', scrollObserver);