| |
| |
| |
| 'use strict'; |
|
|
| document.addEventListener('DOMContentLoaded', function () { |
| (function () { |
| const verticalExample = document.getElementById('vertical-example'), |
| horizontalExample = document.getElementById('horizontal-example'), |
| horizVertExample = document.getElementById('both-scrollbars-example'); |
|
|
| |
| |
| if (verticalExample) { |
| new PerfectScrollbar(verticalExample, { |
| wheelPropagation: false |
| }); |
| } |
|
|
| |
| |
| if (horizontalExample) { |
| new PerfectScrollbar(horizontalExample, { |
| wheelPropagation: false, |
| suppressScrollY: true |
| }); |
| } |
|
|
| |
| |
| if (horizVertExample) { |
| new PerfectScrollbar(horizVertExample, { |
| wheelPropagation: false |
| }); |
| } |
| })(); |
| }); |
|
|