How can we disable zooming function of ion-slide in ionic4

Viewed 2639

How can we disable the zooming function of ion-slides in Ionic 4, I already tried adding zoom="false" input on ion-slides element but it's not working, when I am double tapping on the screen it's still zooming the image and breaking the design.

1 Answers

You can disable zoom using below code in options of ion-slides in your ts file.

  slideOpts = {
    zoom: false
  };


  <ion-slides [options]="slideOpts">
      <ion-slide>..</ion-slide>
  </ion-slides>
Related