Skip to content

Commit b0e8ffe

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

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 ClickOutside from '/@/components/UI/ClickOutside'
4444
import CloseButton from '/@/components/UI/CloseButton.vue'
4545
import useGridLayout from '/@/composables/dom/useGridLayout'
4646
import { useSortable } from '/@/composables/dom/useSortable'
47+
import { isTouchDevice } from '/@/lib/dom/browser'
4748
import { useAppList } from '/@/store/ui/appList'
4849
4950
const emit = defineEmits<{
@@ -56,7 +57,8 @@ const { containerRef } = useSortable({
5657
set: sortable => {
5758
updateAppOrder(sortable.toArray())
5859
}
59-
}
60+
},
61+
delay: isTouchDevice() ? 200 : 0
6062
})
6163
const { columnCount } = useGridLayout(containerRef, { columnCount: 0 })
6264

0 commit comments

Comments
 (0)