FIX: Couldn't reach the bottom of the scrollbar

This commit is contained in:
Robin Ward 2016-05-31 11:16:38 -04:00
parent 321a11fe41
commit 6eb87e6f62
No known key found for this signature in database
GPG Key ID: 0E091E2B4ED1B83D

View File

@ -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);
}
},
_percentFor(topic, postIndex) {