This commit is contained in:
tamaina 2023-07-17 14:34:57 +00:00
parent d82d03890d
commit d335da5ee4
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ watch([() => props.pagination.reversed, $$(scrollableElement)], () => {
weakBacked = entries[0].intersectionRatio > 0.1; weakBacked = entries[0].intersectionRatio > 0.1;
}, { }, {
root: scrollableElement, 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], threshold: [0, 0.01, 0.02, 0.04, 0.08, 0.1, 0.12],
}); });
}, { immediate: true }); }, { immediate: true });