From e099318ab58d49a5900c840f0db63ce8165df37a Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Fri, 22 Mar 2024 14:39:51 +0100 Subject: [PATCH] feat(files): unify drag and drop methods Signed-off-by: skjnldsv --- apps/files/src/components/BreadCrumbs.vue | 36 +- .../src/components/DragAndDropNotice.vue | 80 ++-- apps/files/src/components/FileEntryMixin.ts | 31 +- apps/files/src/services/DropService.ts | 359 +++++++++++++----- 4 files changed, 355 insertions(+), 151 deletions(-) diff --git a/apps/files/src/components/BreadCrumbs.vue b/apps/files/src/components/BreadCrumbs.vue index 5f72aac11af..0c15f88fd13 100644 --- a/apps/files/src/components/BreadCrumbs.vue +++ b/apps/files/src/components/BreadCrumbs.vue @@ -36,7 +36,7 @@ :aria-description="ariaForSection(section)" @click.native="onClick(section.to)" @dragover.native="onDragOver($event, section.dir)" - @dropped="onDrop($event, section.dir)"> + @drop.native="onDrop($event, section.dir)">