mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-18 06:07:48 +00:00
fix(lyrics): hide the scrollbar in lyrics page (#605)
* fix(lyrics): hide the scrollbar in lyrics page close #571 * fix(tracklist): close context menu when scrolling * fix: disable scrolling when modal show
This commit is contained in:
parent
fa98085dcf
commit
aa269cf2ca
6 changed files with 41 additions and 19 deletions
|
|
@ -189,6 +189,7 @@ import VueSlider from 'vue-slider-component';
|
|||
import { formatTrackTime } from '@/utils/common';
|
||||
import { getLyric } from '@/api/track';
|
||||
import { lyricParser } from '@/utils/lyrics';
|
||||
import { disableScrolling, enableScrolling } from '@/utils/ui';
|
||||
import ButtonIcon from '@/components/ButtonIcon.vue';
|
||||
|
||||
export default {
|
||||
|
|
@ -286,8 +287,10 @@ export default {
|
|||
showLyrics(show) {
|
||||
if (show) {
|
||||
this.setLyricsInterval();
|
||||
disableScrolling();
|
||||
} else {
|
||||
clearInterval(this.lyricsInterval);
|
||||
enableScrolling();
|
||||
}
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue