Search code examples
javascriptjquerycsscarouselflexslider

Flexslider rtl swipe direction issue


I am using the flexslider with rtl support provided by rtl-this.com.

When swiping the slider in touch screens, it moves in the opposite direction.

What fix can be done ?


Solution

  • It's fixed in the latest version: https://github.com/layalk/FlexSlider/tree/rtl Now it works with rtl:true

    dx is multiplied by -1 if in rtl mode.

    dx = (vertical) ? startX - localY : (slider.vars.rtl?-1:1)*(startX - localX);
    

    Which makes the target gets picked correctly. It also applies the changes for msGesture is true.