|
|
@ -21,16 +21,18 @@ const distPath = (path != undefined) ? path : '../../../dist'
|
|
|
|
const SELECTOR_SIDEBAR_WRAPPER = '.sidebar-wrapper'
|
|
|
|
const SELECTOR_SIDEBAR_WRAPPER = '.sidebar-wrapper'
|
|
|
|
const Default = {
|
|
|
|
const Default = {
|
|
|
|
scrollbarTheme: 'os-theme-light',
|
|
|
|
scrollbarTheme: 'os-theme-light',
|
|
|
|
scrollbarAutoHide: 'leave'
|
|
|
|
scrollbarAutoHide: 'leave',
|
|
|
|
|
|
|
|
scrollbarClickScroll: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
document.addEventListener("DOMContentLoaded", function() {
|
|
|
|
document.addEventListener("DOMContentLoaded", function() {
|
|
|
|
if (typeof OverlayScrollbarsGlobal?.OverlayScrollbars !== 'undefined') {
|
|
|
|
const sidebarWrapper = document.querySelector(SELECTOR_SIDEBAR_WRAPPER)
|
|
|
|
OverlayScrollbarsGlobal.OverlayScrollbars(document.querySelector(SELECTOR_SIDEBAR_WRAPPER), {
|
|
|
|
if (sidebarWrapper && typeof OverlayScrollbarsGlobal?.OverlayScrollbars !== 'undefined') {
|
|
|
|
|
|
|
|
OverlayScrollbarsGlobal.OverlayScrollbars(sidebarWrapper, {
|
|
|
|
scrollbars: {
|
|
|
|
scrollbars: {
|
|
|
|
theme: Default.scrollbarTheme,
|
|
|
|
theme: Default.scrollbarTheme,
|
|
|
|
autoHide: Default.scrollbarAutoHide,
|
|
|
|
autoHide: Default.scrollbarAutoHide,
|
|
|
|
clickScroll: true
|
|
|
|
clickScroll: Default.scrollbarClickScroll
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|