mirror of
https://github.com/flarum/core.git
synced 2025-10-18 02:06:08 +02:00
Improve "jump to last" scrolling behaviour
This commit is contained in:
@@ -382,11 +382,11 @@ export default Ember.Component.extend({
|
||||
|
||||
actions: {
|
||||
first: function() {
|
||||
this.get('streamContent').send('goToIndex', 0);
|
||||
this.get('streamContent').send('goToFirst');
|
||||
},
|
||||
|
||||
last: function() {
|
||||
this.get('streamContent').send('goToIndex', this.get('count') - 1);
|
||||
this.get('streamContent').send('goToLast');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user