Open
Description
the renderCallback
in rxfor
and rxVirtualFor
is quite a transition to work with.. i can do scroll to bottom in rxfor but on rxVirtualFor its glitching out. because rxVirtualFor keeps calling renderCallback. I think thats by design I guess.
whats the proper way to scroll to bottom. using rxVirtualFor.
i just want to start from the bottom.
this.subs.add(this.itemsRendered.subscribe((data) => {
this.viewport.scrollToIndex(this.items$().length)
//or
//this.elementRef.nativeElement.scrollTo(0, this.elementRef.nativeElement.scrollHeight);
}))
both buggy.. like this.elementRef.nativeElement.scrollTo(0, this.elementRef.nativeElement.scrollHeight);
works but sometimes its almost there. like u need a bit more scroll to be considered bottom. but on rxfor works fine.
this.viewport.scrollToIndex(this.items$().length)
is aggressive to use at rxVirtualFor callback i cant even scroll anymore.
Metadata
Metadata
Assignees
Labels
No labels