Replacing follow requests in the settings area with in-UI column
This commit is contained in:
parent
004382e4d0
commit
3689c119f0
17 changed files with 334 additions and 87 deletions
|
@ -27,11 +27,11 @@ const StatusList = React.createClass({
|
|||
|
||||
this._oldScrollPosition = scrollHeight - scrollTop;
|
||||
|
||||
if (scrollTop === scrollHeight - clientHeight) {
|
||||
if (scrollTop === scrollHeight - clientHeight && this.props.onScrollToBottom) {
|
||||
this.props.onScrollToBottom();
|
||||
} else if (scrollTop < 100) {
|
||||
} else if (scrollTop < 100 && this.props.onScrollToTop) {
|
||||
this.props.onScrollToTop();
|
||||
} else {
|
||||
} else if (this.props.onScroll) {
|
||||
this.props.onScroll();
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue