mirror of
https://github.com/usatiuk/photos.git
synced 2025-10-28 23:37:48 +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>) {
|
function onLoaderScroll(e: React.UIEvent<HTMLElement>) {
|
||||||
if (
|
if (
|
||||||
e.currentTarget.scrollTop + e.currentTarget.clientHeight >=
|
e.currentTarget.scrollTop + e.currentTarget.clientHeight >=
|
||||||
e.currentTarget.scrollHeight
|
e.currentTarget.scrollHeight - 100
|
||||||
) {
|
) {
|
||||||
console.log(props.allPhotosLoaded, props.overviewFetching);
|
console.log(props.allPhotosLoaded, props.overviewFetching);
|
||||||
if (!props.allPhotosLoaded && !props.overviewFetching) {
|
if (!props.allPhotosLoaded && !props.overviewFetching) {
|
||||||
|
|||||||
Reference in New Issue
Block a user