mirror of
https://github.com/flarum/core.git
synced 2025-08-08 01:16:52 +02:00
Remove unnecessary redraw
This commit is contained in:
committed by
Franz Liedke
parent
b2917c8716
commit
ba82969a58
@@ -61,8 +61,6 @@ class PostStreamState {
|
||||
|
||||
const promise = this.loadNearNumber(number);
|
||||
|
||||
m.redraw(true);
|
||||
|
||||
this.locationType = 'number';
|
||||
this.number = number;
|
||||
this.needsScroll = true;
|
||||
@@ -88,8 +86,7 @@ class PostStreamState {
|
||||
|
||||
const promise = this.loadNearIndex(index);
|
||||
|
||||
m.redraw(true);
|
||||
|
||||
console.log('promiseGenerated');
|
||||
this.locationType = 'index';
|
||||
this.index = index;
|
||||
this.needsScroll = true;
|
||||
@@ -115,6 +112,7 @@ class PostStreamState {
|
||||
* @return {Promise}
|
||||
*/
|
||||
goToLast() {
|
||||
m.redraw(true);
|
||||
return this.goToIndex(this.count() - 1);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user