@mybluedog24 wrote:
Hi everyone,
When
ion-contentis scrolling and I clickscrollToTop(). It goes to top first, and then jump back to where it was. I think it’s because the previous scrolling is not finished, so it continues afterscrollToTop()finished… How can I fix this? Is there a way to stopion-contentscrolling during scroll event?Thanks!
Here is my code for scroll to top:
in ts file:
import { Content } from 'ionic-angular'; ... export class TodayDealsPage { @ViewChild(Content) content: Content; ... ionSelected() { this.content.scrollToTop(); } }
Posts: 1
Participants: 1