You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. when I use perfect-scrollbar in RTL environment, at the beginning, the horizontal scrollbar does not appear. when I resize my window, the horizontal scrollbar will appear at this time. But its position is on the left,it should be on the right. At the same time, the horizontal scrollbar can only move to the left. The following is the sample example
For solve this problem, I review the source code. In the source code, the this.isNegativeScroll is always false when in the RTL environment, so the this.negativeScrollAdjustment is always 0, resulting in an incorrect position calculation of the horizontal scroll bar position. When I change this.isNegativeScroll to this.isRtl, the horizontal scrollbar behaves normally.
I also has same issue, i hope scrollbar position on left instead of right
My solution is add ps__rail-y class rule like:
.ps__rail-y{
right:0!important;
left: auto !important;
}
But there is a disadvantage, that is, in a low-speed environment, the transition animation of the scroll bar from left to right will appear (like flickering).
Hello. when I use perfect-scrollbar in RTL environment, at the beginning, the horizontal scrollbar does not appear. when I resize my window, the horizontal scrollbar will appear at this time. But its position is on the left,it should be on the right. At the same time, the horizontal scrollbar can only move to the left. The following is the sample example
For solve this problem, I review the source code. In the source code, the this.isNegativeScroll is always false when in the RTL environment, so the this.negativeScrollAdjustment is always 0, resulting in an incorrect position calculation of the horizontal scroll bar position. When I change
this.isNegativeScroll
tothis.isRtl
, the horizontal scrollbar behaves normally.The text was updated successfully, but these errors were encountered: