|
|
@ -31,6 +31,7 @@ export default class StatusList extends ImmutablePureComponent { |
|
|
|
intersectionObserverWrapper = new IntersectionObserverWrapper(); |
|
|
|
intersectionObserverWrapper = new IntersectionObserverWrapper(); |
|
|
|
|
|
|
|
|
|
|
|
handleScroll = debounce(() => { |
|
|
|
handleScroll = debounce(() => { |
|
|
|
|
|
|
|
if (this.node) { |
|
|
|
const { scrollTop, scrollHeight, clientHeight } = this.node; |
|
|
|
const { scrollTop, scrollHeight, clientHeight } = this.node; |
|
|
|
const offset = scrollHeight - scrollTop - clientHeight; |
|
|
|
const offset = scrollHeight - scrollTop - clientHeight; |
|
|
|
this._oldScrollPosition = scrollHeight - scrollTop; |
|
|
|
this._oldScrollPosition = scrollHeight - scrollTop; |
|
|
@ -42,6 +43,7 @@ export default class StatusList extends ImmutablePureComponent { |
|
|
|
} else if (this.props.onScroll) { |
|
|
|
} else if (this.props.onScroll) { |
|
|
|
this.props.onScroll(); |
|
|
|
this.props.onScroll(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}, 200, { |
|
|
|
}, 200, { |
|
|
|
trailing: true, |
|
|
|
trailing: true, |
|
|
|
}); |
|
|
|
}); |
|
|
|