- simple, custom and beautiful scrollbars
bower install vue-ps
Include vue-ps after Vue.js, perfect-scrollbar and underscore.js:
<script src="path/to/vue.js"></script>
<script src="path/to/perfect-scrollbar.js"></script>
<script src="bower_components/vue-ps/vue-ps.min.js"></script>
Make your Vue.js components scrollable, e.g.:
Vue.component('dnd-board', {
template: '#dnd-board',
ready: function() {
Vue.ps.initialize(this, {wheelSpeed: 0.3});
},
beforeDestroy: function () {
Vue.ps.destroy(this);
}
});