Skip to content

Commit ab08bd3

Browse files
Merge pull request #105 from jsonkao/tuckergordon/default-scroll-direction
Default scroll direction Down
2 parents 319f10b + d5ad60a commit ab08bd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Step.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const Step = props => {
2929

3030
const isBrowser = typeof window !== "undefined";
3131
const scrollTop = isBrowser ? document.documentElement.scrollTop : 0;
32-
const direction = lastScrollTop < scrollTop ? 'down' : 'up';
32+
const direction = lastScrollTop > scrollTop ? 'up' : 'down';
3333

3434
const rootMargin = useRootMargin(offset);
3535

0 commit comments

Comments
 (0)