mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
Added threshold for next page calculation
This commit is contained in:
parent
12c75d2d11
commit
7389e7b4d0
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ const Discover = ({ urlParams, queryParams }) => {
|
|||
if (hasNextPage && metasContainerRef.current) {
|
||||
const containerHeight = metasContainerRef.current.scrollHeight;
|
||||
const viewportHeight = metasContainerRef.current.clientHeight;
|
||||
if (containerHeight <= viewportHeight) {
|
||||
if (containerHeight <= viewportHeight + SCROLL_TO_BOTTOM_TRESHOLD) {
|
||||
loadNextPage();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue