diff --git a/src/InfiniteScroll.ts b/src/InfiniteScroll.ts index 80d0d77..6f4f6ac 100644 --- a/src/InfiniteScroll.ts +++ b/src/InfiniteScroll.ts @@ -147,7 +147,7 @@ class InfiniteScroll { props: { next, hasMore }, } = this; - const axis = direction1 === ScrollDirection.UP ? 'vertical' : 'horizontal'; + const axis = direction1 === ScrollDirection.UP ? ScrollAxisName.VERTICAL : ScrollAxisName.HORIZONTAL; // if the download has not started if (!isLoading[axis]) {