We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b40a800 + 6634943 commit 6a6f7e4Copy full SHA for 6a6f7e4
lib/index.js
@@ -6,7 +6,11 @@ class BottomScrollListener extends Component {
6
constructor(props) {
7
super(props);
8
9
- this.handleOnScroll = debounce(this.handleOnScroll.bind(this), props.debounce, { trailing: true });
+ if (props.debounce) {
10
+ this.handleOnScroll = debounce(this.handleOnScroll.bind(this), props.debounce, { trailing: true });
11
+ } else {
12
+ this.handleOnScroll = this.handleOnScroll.bind(this);
13
+ }
14
}
15
16
componentDidMount() {
0 commit comments