mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 13:48:02 +00:00
fix: bugs
This commit is contained in:
parent
2b22c7e050
commit
9ccce5b468
8 changed files with 5 additions and 16 deletions
|
|
@ -15,6 +15,8 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { disableScrolling, enableScrolling } from '@/utils/ui';
|
||||
|
||||
export default {
|
||||
name: 'ContextMenu',
|
||||
data() {
|
||||
|
|
@ -40,6 +42,7 @@ export default {
|
|||
if (this.$parent.closeMenu !== undefined) {
|
||||
this.$parent.closeMenu();
|
||||
}
|
||||
enableScrolling();
|
||||
},
|
||||
|
||||
openMenu(e) {
|
||||
|
|
@ -51,6 +54,7 @@ export default {
|
|||
}.bind(this)
|
||||
);
|
||||
e.preventDefault();
|
||||
disableScrolling();
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
@ -61,6 +65,7 @@ export default {
|
|||
width: 100%;
|
||||
height: 100%;
|
||||
user-select: none;
|
||||
-webkit-app-region: no-drag;
|
||||
}
|
||||
|
||||
.menu {
|
||||
|
|
|
|||
|
|
@ -147,7 +147,6 @@ export default {
|
|||
transition: transform 0.3s;
|
||||
&:hover {
|
||||
cursor: pointer;
|
||||
transform: scale(1.02);
|
||||
}
|
||||
}
|
||||
img {
|
||||
|
|
|
|||
|
|
@ -43,7 +43,6 @@
|
|||
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';
|
||||
|
|
@ -123,10 +122,8 @@ 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