Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
vdmrgv committed Jul 12, 2022
1 parent 50f0173 commit f344341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/InfiniteScroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand Down

0 comments on commit f344341

Please sign in to comment.