Ion-slide-box - prevent right swipe at first box

I’m using the built in ion-slide-box and trying to avoid the left swipe at first page.

Here’s the code :

<ion-slide-box on-slide-changed="slideChanged()">
    <ion-slide>
      <div class="IntroScene">
        <img src="img/IntroScreens/page1.png" />
      </div>
    </ion-slide>
    <ion-slide>
      <div class="IntroScene">
        <img src="img/IntroScreens/page2.png" />
      </div>
    </ion-slide>
  </ion-slide-box>

Since this is the first page, the right swipe takes the page to half screen and leaving the other with half blank white sheet which is unwanted.

1 Like

Hello all,

Anyone some help ? I have the same need. Prevent right swipe on first box & left swipe on last one ?

1 Like

I also need the same. :neutral_face: