We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 319f10b + d5ad60a commit ab08bd3Copy full SHA for ab08bd3
src/Step.js
@@ -29,7 +29,7 @@ const Step = props => {
29
30
const isBrowser = typeof window !== "undefined";
31
const scrollTop = isBrowser ? document.documentElement.scrollTop : 0;
32
- const direction = lastScrollTop < scrollTop ? 'down' : 'up';
+ const direction = lastScrollTop > scrollTop ? 'up' : 'down';
33
34
const rootMargin = useRootMargin(offset);
35
0 commit comments