woocommerce / FlexSlider

An awesome, fully responsive jQuery slider plugin
http://www.woocommerce.com/flexslider/
GNU General Public License v2.0
4.92k stars 1.69k forks source link

RTL : Slider starts with wrong image #1748

Closed rnivash closed 1 month ago

rnivash commented 5 years ago

if I enable RTL, slider starts with last image in the array instead of the first one. This issue is clearly visible when manual controls are in use and each buttons are linked wrong image (i-1). I am able to reproduce this issue in demo too.

In asnavfor-rtl.html demo file, it starts with image "Adventurer Caramel" instead of the first image "Adventurer Cheesecake Brownie".

rnivash commented 5 years ago

http://flexslider.woothemes.com/asnavfor-rtl.html

image

acrolink commented 5 years ago

I am experiencing the same issue. I have three slides, goes 3rd, 1st, 2nd..

Here is a temporary solution (css):

html[dir=rtl] ul.slides li.clone:not(:last-child) {
  margin-right: auto !important;
  margin-left: 0px !important;
  float: right !important;
}