You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.1 KiB
38 lines
1.1 KiB
2 years ago
|
/**
|
||
|
* Perfect Scrollbar
|
||
|
*/
|
||
|
'use strict';
|
||
|
|
||
|
document.addEventListener('DOMContentLoaded', function () {
|
||
|
(function () {
|
||
|
const verticalExample = document.getElementById('vertical-example'),
|
||
|
horizontalExample = document.getElementById('horizontal-example'),
|
||
|
horizVertExample = document.getElementById('both-scrollbars-example');
|
||
|
|
||
|
// Vertical Example
|
||
|
// --------------------------------------------------------------------
|
||
|
if (verticalExample) {
|
||
|
new PerfectScrollbar(verticalExample, {
|
||
|
wheelPropagation: false
|
||
|
});
|
||
|
}
|
||
|
|
||
|
// Horizontal Example
|
||
|
// --------------------------------------------------------------------
|
||
|
if (horizontalExample) {
|
||
|
new PerfectScrollbar(horizontalExample, {
|
||
|
wheelPropagation: false,
|
||
|
suppressScrollY: true
|
||
|
});
|
||
|
}
|
||
|
|
||
|
// Both vertical and Horizontal Example
|
||
|
// --------------------------------------------------------------------
|
||
|
if (horizVertExample) {
|
||
|
new PerfectScrollbar(horizVertExample, {
|
||
|
wheelPropagation: false
|
||
|
});
|
||
|
}
|
||
|
})();
|
||
|
});
|