This commit is contained in:
tamaina 2023-07-17 14:34:57 +00:00
parent d82d03890d
commit d335da5ee4

View file

@ -185,7 +185,7 @@ watch([() => props.pagination.reversed, $$(scrollableElement)], () => {
weakBacked = entries[0].intersectionRatio > 0.1;
}, {
root: scrollableElement,
rootMargin: props.pagination.reversed ? '-100% 0px 100% 0px' : '100% 0px -100% 0px',
rootMargin: props.pagination.reversed ? '-1000% 0px 100% 0px' : '100% 0px -1000% 0px',
threshold: [0, 0.01, 0.02, 0.04, 0.08, 0.1, 0.12],
});
}, { immediate: true });