Hi, i wanna add a function of auto scroll over time in my app. I tryed this, but is so outdated:
@ViewChild(Content) content: Content;
...
scrollToBottom() {
setTimeout(() => {
if (this.isScroll && this.content.getContentDimensions().scrollHeight && this.content.contentHeight && this.content.getContentDimensions().scrollHeight > this.content.contentHeight * this.scrollIdx) {
this.content.scrollTo(0, this.content.contentHeight * this.scrollIdx, 300);
this.scrollIdx++;
this.scrollToBottom();
}
}, 5000);
}