mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
FIX: Ensure load-more considers current position (#8357)
The loadMore action was not called if user was already at the bottom of the page.
This commit is contained in:
parent
352d43b101
commit
3650c64bca
|
@ -21,6 +21,7 @@ export default Mixin.create(Scrolling, {
|
|||
const eyeline = new Eyeline(this.eyelineSelector + ":last");
|
||||
this.set("eyeline", eyeline);
|
||||
eyeline.on("sawBottom", () => this.send("loadMore"));
|
||||
eyeline.update(); // update once to consider current position
|
||||
this.bindScrolling();
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user