react-multi-carousel icon indicating copy to clipboard operation
react-multi-carousel copied to clipboard

Rtl support for custom button group

Open saharalon opened this issue 5 years ago • 13 comments

Hi @YIZHUANG This is a tiny fix, only available for customButtonGroup prop

saharalon avatar Dec 26 '19 08:12 saharalon

Hi, so this doesn't work for the next and previous arrows?

YIZHUANG avatar Dec 28 '19 15:12 YIZHUANG

No, i don't know all use cases, so i figured whoever wants RTL with custom buttons can enjoy it until the full RTL support will be resolved

saharalon avatar Dec 29 '19 10:12 saharalon

@YIZHUANG any updates ?

saharalon avatar Jan 05 '20 10:01 saharalon

@saharalon I plan to work on this soon!

YIZHUANG avatar Jan 05 '20 14:01 YIZHUANG

cool thanks! waiting :)

saharalon avatar Jan 05 '20 14:01 saharalon

@saharalon Thanks for your contribution. @YIZHUANG Can you please check this PR? It would be great having this feature for next release!

thegeekydev avatar Jan 12 '20 12:01 thegeekydev

I tested this, it doesn't seem to work. I think it needs to support the current "next" and "previous" functionality for the default arrows as well. I see working on this feature requires some efforts, as the behaviour for keep tracking of the current slide needs to be changed as well and of course the infinite mode included. I just don't have that time for such a big task for now, if anyone's up for it, feel free to work on it.

YIZHUANG avatar Jan 16 '20 16:01 YIZHUANG

Doesn't it work for customButtonGroup though ?

saharalon avatar Jan 19 '20 10:01 saharalon

@saharalon Yeah, it doesn't seem to work. I am thinking maybe something like this could work:

public next(slidesHavePassed) {
  if(this.props.RTL) {
  this.previous(slidesHavePassed);
 return;
}
}

Haven't tried if this work yet.

YIZHUANG avatar Jan 21 '20 19:01 YIZHUANG

@YIZHUANG you actually don't need to change the behaviour.. only the direction the slides are going.

saharalon avatar Jan 22 '20 06:01 saharalon

@YIZHUANG any updates ?

saharalon avatar Feb 16 '20 08:02 saharalon

@saharalon Sorry haven't had the time yet, but i managed to give this a thought having an idea to rewrite this lib so that it can better handle features like this.

YIZHUANG avatar Feb 23 '20 22:02 YIZHUANG

@YIZHUANG cool thanks! - waiting :)

saharalon avatar Feb 24 '20 11:02 saharalon