mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-27 16:33:02 +00:00
✌️
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