Slides - locking and unlocking swipes

I would like to prevent manual swiping of slides. The slides will use the slideTo method based on other actions.

I have tried using lockSwipes(true) but this prevents the slideTo method from functioning.
I have tried setting lockSwipes(false) just before using slideTo but this also did not work. It does not seem to Unlock.

I see slides.options is no longer available so using externalOnly seems to be available. I have also tried:

I see references to unlockSwipes but it appears to be no more.

Turns out I was preventing lockSwipes(false) elsewhere.
So, now I use:

 this.slides.lockSwipes(false);
 this.slides.slideTo(this.current_space, 500);

slideChanged() {
    this.slides.lockSwipes(true);
  }