This commit is contained in:
parent
ba3fa8b431
commit
752c01ba91
|
@ -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 });
|
||||||
|
|
Loading…
Reference in New Issue