File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -106,8 +106,6 @@ const Sidebar = (($) => {
106
106
this . destroyScrollbar ( )
107
107
} else {
108
108
this . ps = this . makeScrollbar ( )
109
- // ToDo: find real fix for ps rtl
110
- this . ps . isRtl = false
111
109
}
112
110
}
113
111
@@ -116,17 +114,18 @@ const Sidebar = (($) => {
116
114
setTimeout ( ( ) => {
117
115
this . destroyScrollbar ( )
118
116
this . ps = this . makeScrollbar ( )
119
- // ToDo: find real fix for ps rtl
120
- this . ps . isRtl = false
121
117
} , Default . transition )
122
118
}
123
119
}
124
120
}
125
121
126
122
makeScrollbar ( container = Selector . NAVIGATION_CONTAINER ) {
127
- return new PerfectScrollbar ( document . querySelector ( container ) , {
123
+ const ps = new PerfectScrollbar ( document . querySelector ( container ) , {
128
124
suppressScrollX : true
129
125
} )
126
+ // ToDo: find real fix for ps rtl
127
+ ps . isRtl = false
128
+ return ps
130
129
}
131
130
132
131
destroyScrollbar ( ) {
You can’t perform that action at this time.
0 commit comments