How to stop y-scrolling inside slide

Hello,

this seems a question that is often asked, but I don’t have found a working solution for Ionic 3.

I want freeze a slide, for exsample by toggle to switch between scroll and swipe or don’t scroll and don’t swipe.

for swipe I use this.

if($event.checked){
    console.log('$event.checked true' + $event.checked);
    myslide.classList.add('swiper-no-swiping');

  }
  else{
    console.log('$event.checked ' + $event.checked);
    myslide.classList.remove('swiper-no-swiping');
    
  }

But for y-scrolling I found no working code for Ionic 3. Every help is much appreciated.

Thanks in advance, anna-liebt.