Skip to content

Commit 02858f2

Browse files
committed
fix scroll-top issue
1 parent 8d602de commit 02858f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default class ReactScrollDetector extends React.Component {
3434
return onScrollBottom(top)
3535
}
3636

37-
const isScrolledToTop = top < this.lastScrollTop
37+
const isScrolledToTop = top <= this.lastScrollTop
3838

3939
this.lastScrollTop = top
4040

0 commit comments

Comments
 (0)