vuescroll
Version:
A powerful, customizable, multi-mode scrollbar plugin based on Vue.js
37 lines (36 loc) • 737 B
JavaScript
export default {
vertical: {
size: 'height',
opsSize: 'width',
posName: 'top',
opposName: 'bottom',
sidePosName: 'right',
page: 'pageY',
scroll: 'scrollTop',
scrollSize: 'scrollHeight',
offset: 'offsetHeight',
client: 'clientY',
axis: 'Y',
scrollButton: {
start: 'top',
end: 'bottom'
}
},
horizontal: {
size: 'width',
opsSize: 'height',
posName: 'left',
opposName: 'right',
sidePosName: 'bottom',
page: 'pageX',
scroll: 'scrollLeft',
scrollSize: 'scrollWidth',
offset: 'offsetWidth',
client: 'clientX',
axis: 'X',
scrollButton: {
start: 'left',
end: 'right'
}
}
};