mirror of
https://github.com/usatiuk/photos.git
synced 2025-10-28 15:27:49 +01:00
infinite scroll more tolerance
This commit is contained in:
@@ -52,7 +52,7 @@ export const OverviewComponent: React.FunctionComponent<IOverviewComponentProps>
|
||||
function onLoaderScroll(e: React.UIEvent<HTMLElement>) {
|
||||
if (
|
||||
e.currentTarget.scrollTop + e.currentTarget.clientHeight >=
|
||||
e.currentTarget.scrollHeight
|
||||
e.currentTarget.scrollHeight - 100
|
||||
) {
|
||||
console.log(props.allPhotosLoaded, props.overviewFetching);
|
||||
if (!props.allPhotosLoaded && !props.overviewFetching) {
|
||||
|
||||
Reference in New Issue
Block a user