FIX: If the progress bar is docked, set the progress to 100%

This commit is contained in:
Robin Ward 2017-06-22 14:43:15 -04:00
parent b22df9f166
commit 5fda2b84e1
1 changed files with 8 additions and 2 deletions

View File

@ -52,8 +52,14 @@ export default Ember.Component.extend({
},
_topicScrolled(event) {
this.set('progressPosition', event.postIndex);
this._streamPercentage = event.percent;
if (this.get('docked')) {
this.set('progressPosition', this.get('postStream.filteredPostsCount'));
this._streamPercentage = 1.0;
} else {
this.set('progressPosition', event.postIndex);
this._streamPercentage = event.percent;
}
this._updateBar();
},