artemsemkin

Rhye HTML5 Template - disable touch move over the slider footer

May 6th, 2021 (edited)
102
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. _getSliderFooter() {
  2.   if (this.$sliderFooter.length) {
  3.     const sliderFooter = new Swiper(this.$sliderFooter[0], {
  4.       centeredSlides: true,
  5.       speed: this.sliderSpeed,
  6.       effect: 'fade',
  7.       fadeEffect: {
  8.         crossFade: true
  9.       },
  10.       allowTouchMove: false // <------------- add this ------
  11.     });
  12.  
  13.     this.sliderImg.controller.control.push(sliderFooter);
  14.   }
  15. }
RAW Paste Data