test
This commit is contained in:
parent
7fe882d0e2
commit
e609b3b7dc
1 changed files with 2 additions and 3 deletions
|
@ -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%以上先頭にいる場合はweakBackedをtrueにしたい
|
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 });
|
||||||
|
|
Loading…
Reference in a new issue