FIX: If the progress bar is docked, set the progress to 100%
This commit is contained in:
parent
b22df9f166
commit
5fda2b84e1
|
@ -52,8 +52,14 @@ export default Ember.Component.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
_topicScrolled(event) {
|
_topicScrolled(event) {
|
||||||
|
if (this.get('docked')) {
|
||||||
|
this.set('progressPosition', this.get('postStream.filteredPostsCount'));
|
||||||
|
this._streamPercentage = 1.0;
|
||||||
|
} else {
|
||||||
this.set('progressPosition', event.postIndex);
|
this.set('progressPosition', event.postIndex);
|
||||||
this._streamPercentage = event.percent;
|
this._streamPercentage = event.percent;
|
||||||
|
}
|
||||||
|
|
||||||
this._updateBar();
|
this._updateBar();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue