Prevent slide to first slide

I had 3 slides. I want that when I did slide to slide #2 so I will never can slide back to slide #1. I did the implementation like this:

ionSlideDidChange() {
    switch(this.slides.getActiveIndex()) { 
      case 0: { 
        break; 
      } 
      case 1: { 
        this.slides.lockSwipeToPrev(true);
        break; 
      }
      case 2: { 
        this.slides.lockSwipeToPrev(false);
        break; 
      }
      default: { 
        //statements; 
        break; 
      } 
    } 
  }

It did what I expected except one case that when I am in the #3 I did a long swipe back and it will jump to #2 then #1. Anybody has experience on this? Note that this will not happen in real android device. I do not have iPhone or window phone so I afraid that it will happen there :slight_smile: