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

This commit is contained in:
wmwragg 2016-08-30 11:56:16 +01:00
parent 7b7a77bad0
commit 45a813b795

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);
}
},