infinite scroll more tolerance

This commit is contained in:
2020-10-17 07:41:05 +00:00
committed by Stepan Usatiuk
parent 0dcaf57dd2
commit 7614cdd747

View File

@@ -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) {