mirror of
https://github.com/misskey-dev/misskey
synced 2024-11-29 23:38:55 +09:00
✌️
This commit is contained in:
parent
4af1718c03
commit
0bbb15afbb
@ -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 New Issue
Block a user