This commit is contained in:
tamaina 2023-07-17 11:47:08 +00:00
parent 568822944f
commit da4aba3247

View file

@ -182,11 +182,11 @@ watch([() => props.pagination.reversed, $$(scrollableElement)], () => {
scrollObserver = new IntersectionObserver(entries => {
if (!active.value) return; // active
weakBacked = entries[0].isIntersecting;
weakBacked = entries[0].intersectionRatio > 0.1;
}, {
root: scrollableElement,
rootMargin: props.pagination.reversed ? '-130% 0px 130% 0px' : '130% 0px -130% 0px',
threshold: [0],
rootMargin: props.pagination.reversed ? '-100% 0px 100% 0px' : '100% 0px -100% 0px',
threshold: [0, 0.01, 0.02, 0.04, 0.08, 0.1, 0.12],
});
}, { immediate: true });