Fixed historical scetion not scrolling up when clicked if not hidden and stuck

pull/2028/head
wmwragg 2016-08-30 11:56:16 +01:00
parent 7b7a77bad0
commit 45a813b795
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ var RoomSubList = React.createClass({
this.props.onHeaderClick(isHidden);
} else {
// The header is stuck, so the click is to be interpreted as a scroll to the header
this.props.onHeaderClick(isHidden, this.refs.header.dataset.originalPosition);
this.props.onHeaderClick(this.state.hidden, this.refs.header.dataset.originalPosition);
}
},