mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2026-04-05 10:33:14 +08:00
fix: scroll bar click problem (#793)
Fixed the scroll bar click problem
This commit is contained in:
@@ -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',
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user