diff --git a/js/src/forum/components/PostStreamScrubber.js b/js/src/forum/components/PostStreamScrubber.js index 26b9330e5..5d59f8fe3 100644 --- a/js/src/forum/components/PostStreamScrubber.js +++ b/js/src/forum/components/PostStreamScrubber.js @@ -99,7 +99,7 @@ export default class PostStreamScrubber extends Component {
{viewing} - {retain || this.description} + {retain || this.description}
@@ -132,7 +132,7 @@ export default class PostStreamScrubber extends Component { */ goToLast() { this.props.stream.goToLast(); - this.index = this.props.stream.count(); + this.index = this.count(); this.renderScrollbar(true); } @@ -190,7 +190,6 @@ export default class PostStreamScrubber extends Component { const marginTop = stream.getMarginTop(); const viewportTop = scrollTop + marginTop; const viewportHeight = $(window).height() - marginTop; - const viewportBottom = viewportTop + viewportHeight; // Before looping through all of the posts, we reset the scrollbar // properties to a 'default' state. These values reflect what would be