From 6eb87e6f62b1495b35ce2ea9f294beb291fb30e5 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 31 May 2016 11:16:38 -0400 Subject: [PATCH] FIX: Couldn't reach the bottom of the scrollbar --- .../javascripts/discourse/widgets/topic-timeline.js.es6 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/assets/javascripts/discourse/widgets/topic-timeline.js.es6 b/app/assets/javascripts/discourse/widgets/topic-timeline.js.es6 index 6a5769b0f38..9fcfe691210 100644 --- a/app/assets/javascripts/discourse/widgets/topic-timeline.js.es6 +++ b/app/assets/javascripts/discourse/widgets/topic-timeline.js.es6 @@ -172,10 +172,7 @@ createWidget('timeline-scrollarea', { topicCurrentPostScrolled(event) { const { postIndex, percent } = event; - // If the post number didn't change keep our scroll position - if (this.state.scrolledPost !== postIndex) { - this.state.percentage = this._percentFor(this.attrs.topic, parseFloat(postIndex) + percent); - } + this.state.percentage = this._percentFor(this.attrs.topic, parseFloat(postIndex) + percent); }, _percentFor(topic, postIndex) {