Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 298
Mohammed Rafeeq Avatar asked Dec 10 '22 04:12

Mohammed Rafeeq


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>
like image 126
Darshana Avatar answered Mar 15 '23 00:03

Darshana