mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-25 10:45:41 +03: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 ? (
|
||||
<InView
|
||||
root={scrollableRef.current}
|
||||
rootMargin={Math.max(screen.width, screen.height) + 'px'}
|
||||
rootMargin={`0px 0px ${screen.height * 1.5}px 0px`}
|
||||
onChange={(inView) => {
|
||||
if (inView) {
|
||||
loadItems();
|
||||
|
|
Loading…
Reference in a new issue