Hi All
I am using Ionic2, and need to scroll a list to a specific position when the page loads.
I do the following:
public ionViewDidEnter(): void {
if (this.content) {
this.content.scrollTo(0, this.lastScrollPos, 0);
}
}
Problem
This works, but my problem is even though the scroll time is 0, the scroll animation is still visible to the user.
Question
Is there a way to do the scroll, but it is not apparent to the user? I have tried doing the scroll in ionViewWillEnter
, but it does not scroll because I think this is too early and the list doesn’t exist yet.
Thanks