Skip to content
","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"
\n

Is there any chance the InfiniteScroll component could let you set the root element for the observer? I believe that may be the problem.

\n
\n

I'm pretty sure that's exactly the reason since InfiniteScroll currently doesn't support custom root elements and defaults to the viewport.

","upvoteCount":1,"url":"https://github.com/igordanchenko/react-photo-album/discussions/198#discussioncomment-11990116"}}}

Infinite Scroll is blocked by containing div with set height and overflow-y: scroll #198

Answered by igordanchenko
flynnpc-swca asked this question in Q&A

You must be logged in to vote

Is there any chance the InfiniteScroll component could let you set the root element for the observer? I believe that may be the problem.

I'm pretty sure that's exactly the reason since InfiniteScroll currently doesn't support custom root elements and defaults to the viewport.

Replies: 1 comment

You must be logged in to vote
0 replies
Answer selected by igordanchenko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants