Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swipeToSlide is not working on RTL #109

Open
marslan2037 opened this issue May 20, 2023 · 1 comment
Open

swipeToSlide is not working on RTL #109

marslan2037 opened this issue May 20, 2023 · 1 comment

Comments

@marslan2037
Copy link

marslan2037 commented May 20, 2023

Hi, I am using Angular 12, and Slick 0.5.1. The problem i am facing is swipeToSlide is working fine in LTR, but in RTL it is not working at all. I am updating rtl value dynamically.

`slideConfig = {
    "slidesToShow": 10,
    // "slidesToScroll": 1,
    swipeToSlide: true,
    touchThreshold: 309,
    arrows: true,
    infinite: true,
    dots: false,
    variableWidth: true,
    rtl: this.isRTL
};`

`updateRTL() {
    const lang = localStorage.getItem('lang');
    if(lang == 'yi' || lang == 'he') {
        this.isRTL = true;
    } else {
        this.isRTL = false;
    }
    this.slideConfig.rtl = this.isRTL;
}`

Anyone please help me to fix the issue.

@marslan2037
Copy link
Author

I just found that if i remove variableWidth: true, it start working fine, but i need that property

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant