mirror of
https://github.com/flarum/core.git
synced 2025-10-13 07:54:25 +02:00
Fixed noAnimation: previously, the opposite of what was requested happened
This commit is contained in:
@@ -104,7 +104,7 @@ class PostStreamState {
|
||||
this.loadPromise = this.loadNearNumber(number);
|
||||
|
||||
this.targetPost = { number };
|
||||
this.noAnimationScroll = noAnimation;
|
||||
this.animateScroll = !noAnimation;
|
||||
this.number = number;
|
||||
|
||||
// In this case, the redraw is only called after the response has been loaded
|
||||
@@ -128,7 +128,7 @@ class PostStreamState {
|
||||
this.loadPromise = this.loadNearIndex(index);
|
||||
|
||||
this.targetPost = { index };
|
||||
this.noAnimationScroll = noAnimation;
|
||||
this.animateScroll = !noAnimation;
|
||||
this.index = index;
|
||||
|
||||
m.redraw();
|
||||
|
Reference in New Issue
Block a user