Hi all,
I used ion-slides in my app and enabled zoom, when user pinch or double tap on the slide, it will zoom in/out. I also enable single tap event on slide to show/hide the menu.
but each time when i double tap on the slide, the single tap event also fired! this is not what i want. any idea to avoid this? thanks!
Here is my code:
<ion-slides [zoom]="true" [initialSlide]="currentPageIndex - 1" (ionSlideReachStart)="firstSlide()" (ionSlideDidChange)="slideChanged()" (ionSlideTap)="onSingleTap()">
<ion-slide *ngFor="let image of imageList; let i = index">
<div class="swiper-zoom-container" *ngIf="image.loaded || i === 0">
<img [src]="image.url" fit-screen />
</div>
</ion-slide>
</ion-slides>