Skip to content

Commit 1da05e9

Browse files
committed
fix: タッチデバイスの場合は長押しで並び替える
1 parent 63dccba commit 1da05e9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/components/Main/NavigationBar/AppList.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ import CloseButton from '/@/components/UI/CloseButton.vue'
4444
import useGridLayout from '/@/composables/dom/useGridLayout'
4545
import { useSortable } from '/@/composables/dom/useSortable'
4646
import { useAppList } from '/@/store/ui/appList'
47+
import { isTouchDevice } from '/@/lib/dom/browser'
4748
4849
const emit = defineEmits<{
4950
(e: 'close'): void
@@ -55,7 +56,8 @@ const { containerRef } = useSortable({
5556
set: sortable => {
5657
updateAppOrder(sortable.toArray())
5758
}
58-
}
59+
},
60+
delay: isTouchDevice() ? 200 : 0
5961
})
6062
const { columnCount } = useGridLayout(containerRef, { columnCount: 0 })
6163

0 commit comments

Comments
 (0)