This commit is contained in:
syuilo 2018-02-27 06:35:16 +09:00
parent 4af1718c03
commit 0bbb15afbb
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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) {