I'm building an app where I have images inside a ion-slides
with indvidual ion-slide
tags, when I'm swiping horizontally the scroll bar sometimes activates which moves the page and causes the user to have to re-adjust.
How can I lock the native scroll while the swipe is happening without it obstructing the use of the main scroll?
I realise I could probably hide the scrollbar while the event happens using something like ionSlideDrag Emitted when a slide moves.
alongside ionSlideNextEnd
and ionSlidePrevEnd
But It this approach doesn't seem intuitive.
<div class="image-container">
<ion-slides>
<ion-slide *ngFor="let slide of carDetails.imageUrls">
<img [src]="slide">
</ion-slide>
</ion-slides>
</div>
How can I essentially allow swiping while not allowing the scroll to occur?