This commit is contained in:
tamaina 2023-07-14 05:25:44 +00:00
parent ba3fa8b431
commit 752c01ba91

View file

@ -182,7 +182,7 @@ watch([() => props.pagination.reversed, $$(scrollableElement)], () => {
}, { }, {
root: scrollableElement, root: scrollableElement,
rootMargin: props.pagination.reversed ? '-100% 0px 100% 0px' : '100% 0px -100% 0px', rootMargin: props.pagination.reversed ? '-100% 0px 100% 0px' : '100% 0px -100% 0px',
threshold: 0.1, // 10%queue threshold: [0.01, 0.05, 0.1], // 10%0.01
}); });
console.log('new scrollObserver', scrollObserver); console.log('new scrollObserver', scrollObserver);
}, { immediate: true }); }, { immediate: true });