Scroll position with swiper when changing slides

Hello guys,
This topic is only to share how i solved the proble whi the scroll postion when changing slides.
I don’t seen this solution anywhere so i’m decide to share it.

On template:
<swiper-container #mySlider [speed]=“200” [slides-per-view]=“1” (swiperSlideChangeTransitionStart)=“onSlideWillChange($event)” (swiperslidechange)=“onSlideChanged($event)”>

On typescript

@ViewChild(IonContent) content: IonContent;
and the used

onSlideChanged(slider: any) {
this.content.scrollToPoint(0, 0, 500);
}