mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 14:07:38 -07:00
✌️
This commit is contained in:
parent
2b69e16b71
commit
40ca02c538
2 changed files with 8 additions and 1 deletions
|
@ -52,6 +52,8 @@ export default Vue.extend({
|
|||
} else {
|
||||
e.dataTransfer.dropEffect = 'none';
|
||||
}
|
||||
|
||||
return false;
|
||||
},
|
||||
onDragenter() {
|
||||
if (this.folder || this.browser.folder) this.draghover = true;
|
||||
|
@ -102,6 +104,9 @@ export default Vue.extend({
|
|||
|
||||
<style lang="stylus" scoped>
|
||||
.root.nav-folder
|
||||
> *
|
||||
pointer-events none
|
||||
|
||||
&[data-draghover]
|
||||
background #eee
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
ref="main"
|
||||
@mousedown="onMousedown"
|
||||
@dragover.prevent.stop="onDragover"
|
||||
@dragenter.prevent="onDragenter"
|
||||
@dragenter="onDragenter"
|
||||
@dragleave="onDragleave"
|
||||
@drop.prevent.stop="onDrop"
|
||||
@contextmenu.prevent.stop="onContextmenu"
|
||||
|
@ -251,6 +251,8 @@ export default Vue.extend({
|
|||
} else {
|
||||
e.dataTransfer.dropEffect = 'none';
|
||||
}
|
||||
|
||||
return false;
|
||||
},
|
||||
|
||||
onDragenter(e) {
|
||||
|
|
Loading…
Reference in a new issue