mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 13:48:02 +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
|
|
@ -43,6 +43,7 @@
|
|||
import { mapActions, mapMutations, mapState } from 'vuex';
|
||||
import { addOrRemoveTrackFromPlaylist } from '@/api/playlist';
|
||||
import { isAccountLoggedIn } from '@/utils/auth';
|
||||
import { disableScrolling, enableScrolling } from '@/utils/ui';
|
||||
|
||||
import TrackListItem from '@/components/TrackListItem.vue';
|
||||
import ContextMenu from '@/components/ContextMenu.vue';
|
||||
|
|
@ -122,8 +123,10 @@ export default {
|
|||
openMenu(e, track) {
|
||||
this.rightClickedTrack = track;
|
||||
this.$refs.menu.openMenu(e);
|
||||
disableScrolling();
|
||||
},
|
||||
closeMenu() {
|
||||
enableScrolling();
|
||||
this.rightClickedTrack = {
|
||||
id: 0,
|
||||
name: '',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue