mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: If the progress bar is docked, set the progress to 100%
This commit is contained in:
@@ -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();
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user