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.
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
Most helpful comment
this
ps.isRtl = false;fix the RTL issue.