Trying to make an endless scroll page that displays elements as a user scroll.
So every time I find that the scroll reaches the end of the page, I call
this.recordLimit += 10;
this.subscribe('movements', {limit: this.recordLimit});
and what causes (autostart)
this.autorun(h => {
if (this.ready()) {
this.items = Items.find(<potential limit filter here too>);
}
Good. It works. However, each time it is called this.items = Items.find();, the user's browser scrolls up.
This potentially happens because the dom elements are deleted, the scroll is reset, and then the elements are added again without restoring the previous scroll position.
What am I doing wrong?
Examples where this is an “explicit” worker:
@########### ############ @
, , , Items.find() a h.stop(), , ... , - .
, .