mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 06:06:41 +01:00
Adjust rootMargin
This commit is contained in:
parent
72dc4cc81b
commit
3d4ebb8abe
1 changed files with 1 additions and 1 deletions
|
@ -453,7 +453,7 @@ function Timeline({
|
||||||
(showMore ? (
|
(showMore ? (
|
||||||
<InView
|
<InView
|
||||||
root={scrollableRef.current}
|
root={scrollableRef.current}
|
||||||
rootMargin={Math.max(screen.width, screen.height) + 'px'}
|
rootMargin={`0px 0px ${screen.height * 1.5}px 0px`}
|
||||||
onChange={(inView) => {
|
onChange={(inView) => {
|
||||||
if (inView) {
|
if (inView) {
|
||||||
loadItems();
|
loadItems();
|
||||||
|
|
Loading…
Reference in a new issue