mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2024-11-22 14:20:50 +08:00
fix: scroll bar click problem (#793)
Fixed the scroll bar click problem
This commit is contained in:
parent
c091e4cb9f
commit
610f663c24
|
@ -116,9 +116,15 @@ export default {
|
|||
document.removeEventListener('mousemove', this.handleDragMove);
|
||||
document.removeEventListener('mouseup', this.handleDragEnd);
|
||||
},
|
||||
handleClick() {
|
||||
handleClick(e) {
|
||||
let scrollTop;
|
||||
if (e.clientY < this.top + 84) {
|
||||
scrollTop = -256;
|
||||
} else {
|
||||
scrollTop = 256;
|
||||
}
|
||||
this.main.scrollBy({
|
||||
top: 256,
|
||||
top: scrollTop,
|
||||
behavior: 'smooth',
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user