forked from FoundKeyGang/FoundKey
✌️
This commit is contained in:
parent
4af1718c03
commit
0bbb15afbb
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