Ionic 3 image slider autoplay works well, but when I slide the image manually the autoplay stops working. Below is my ionic 3 code. I am really stuck here..
Update:
You need to use it like this:
import { Component, ViewChild } from '@angular/core';
import { IonicPage, NavController, NavParams, Slides } from 'ionic-angular';
@ViewChild(Slides) slides: Slides;
constructor(private navCtrl: NavController, private navParams: NavParams) {
}
ionViewDidEnter() {
this.slides.autoplayDisableOnInteraction = false;
}
Note: You need to remove autoplayDisableOnInteraction = "false"
on html
page.
Old Answer:
You can use autoplayDisableOnInteraction = "false"
as shown below.
See how it implements on Ionic
Swiper API
disableOnInteraction boolean true Set to false and autoplay will not be disabled after user interactions (swipes), it will be restarted every time after interaction