1
0
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:
Toby Zerner
2015-01-30 13:05:42 +10:30
parent 12622e6c28
commit 5edc3eba83
4 changed files with 27 additions and 10 deletions

View File

@@ -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');
}
}
});