Perfect-scrollbar: RTL support (again!)

Created on 4 Oct 2017  路  4Comments  路  Source: mdbootstrap/perfect-scrollbar

Currently, it seems RTL works only for Chrome. #484

I'm not familiar with RTL and also do not own any Windows machine, so any contribution concerning this will be welcomed.

The good starting point is to make rtl.html example work.

help wanted enhancement

Most helpful comment

ps = new PerfectScrollbar(element, {
    wheelSpeed: 0.5,
    swipeEasing: true,
    wheelPropagation: false,
    minScrollbarLength: 40,
    suppressScrollX: true
});

ps.isRtl = false;

this ps.isRtl = false; fix the RTL issue.

All 4 comments

I've confirmed that RTL support doesn't work in Chrome too, because of recent rail+thumb changes.

I am only using Y scroll so this changes worked for me , almost.

.rtl .ps__rail-y {right : auto !important;left : 0;}

let scrollbar   = new PerfectScrollbar(this.element, { suppressScrollX: true });
scrollbar.isRtl = false;
ps = new PerfectScrollbar(element, {
    wheelSpeed: 0.5,
    swipeEasing: true,
    wheelPropagation: false,
    minScrollbarLength: 40,
    suppressScrollX: true
});

ps.isRtl = false;

this ps.isRtl = false; fix the RTL issue.

This was fixed by #744

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gpluess picture gpluess  路  4Comments

GNSubrahmanyam picture GNSubrahmanyam  路  3Comments

eddieklc picture eddieklc  路  3Comments

corysimmons picture corysimmons  路  6Comments

julmot picture julmot  路  8Comments