We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86c477a commit 358c554Copy full SHA for 358c554
src/composables/admin/storage/storage-list.js
@@ -8,6 +8,9 @@ import {
8
} from "~/api/admin-storage";
9
import Sortable from "sortablejs";
10
11
+import useCommon from "~/composables/useCommon";
12
+const { isMobile } = useCommon();
13
+
14
let cacheManageVisible = ref(false);
15
let currentCacheManageId = ref();
16
@@ -128,6 +131,7 @@ export default function useStorageList(router) {
128
131
Sortable.create(el, {
129
132
draggable: '.storage-item',
130
133
filter: '.add-storage-btn',
134
+ delay: isMobile.value ? 300 : 0,
135
onEnd: e => {
136
if (e.oldIndex === e.newIndex) {
137
return;
0 commit comments