We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c091e4c commit 610f663Copy full SHA for 610f663
src/components/Scrollbar.vue
@@ -116,9 +116,15 @@ export default {
116
document.removeEventListener('mousemove', this.handleDragMove);
117
document.removeEventListener('mouseup', this.handleDragEnd);
118
},
119
- handleClick() {
+ handleClick(e) {
120
+ let scrollTop;
121
+ if (e.clientY < this.top + 84) {
122
+ scrollTop = -256;
123
+ } else {
124
+ scrollTop = 256;
125
+ }
126
this.main.scrollBy({
- top: 256,
127
+ top: scrollTop,
128
behavior: 'smooth',
129
});
130
0 commit comments