This commit is contained in:
tamaina 2023-07-17 09:19:42 +00:00
parent b446bfb0b6
commit bec510e37d
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ watch([() => props.pagination.reversed, $$(scrollableElement)], () => {
weakBacked = entries[0].isIntersecting; weakBacked = entries[0].isIntersecting;
}, { }, {
root: scrollableElement, 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], threshold: [0],
}); });
console.log('new scrollObserver', scrollObserver); console.log('new scrollObserver', scrollObserver);