This commit is contained in:
tamaina 2023-07-17 08:06:54 +00:00
parent 7fe882d0e2
commit e609b3b7dc
1 changed files with 2 additions and 3 deletions

View File

@ -184,9 +184,8 @@ watch([() => props.pagination.reversed, $$(scrollableElement)], () => {
weakBacked = entries[0].isIntersecting; weakBacked = entries[0].isIntersecting;
}, { }, {
root: scrollableElement, root: scrollableElement,
rootMargin: props.pagination.reversed ? '-100% 0px 100% 0px' : '100% 0px -100% 0px', rootMargin: props.pagination.reversed ? '-110% 0px 110% 0px' : '110% 0px -110% 0px',
// 12%weakBackedtrue threshold: [0],
threshold: [0, 0.02, 0.04, 0.06, 0.08, 0.10, 0.12],
}); });
console.log('new scrollObserver', scrollObserver); console.log('new scrollObserver', scrollObserver);
}, { immediate: true }); }, { immediate: true });