Add drag delay on mobile

This commit is contained in:
kolaente 2021-07-29 13:08:38 +02:00
parent 3c2d89a0f6
commit c323804c7c
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -226,8 +226,10 @@
</template>
<script>
import BucketModel from '../../../models/bucket'
import isTouchDevice from 'is-touch-device'
import draggable from 'vuedraggable'
import BucketModel from '../../../models/bucket'
import {filterObject} from '@/helpers/filterObject'
import {mapState} from 'vuex'
import {saveListView} from '@/helpers/saveListView'
@ -238,7 +240,6 @@ import Dropdown from '@/components/misc/dropdown.vue'
import createTask from '../../../components/tasks/mixins/createTask'
import {getCollapsedBucketState, saveCollapsedBucketState} from '@/helpers/saveCollapsedBucketState'
import {calculateItemPosition} from '../../../helpers/calculateItemPosition'
import draggable from 'vuedraggable'
import KanbanCard from '../../../components/tasks/partials/kanban-card'
export default {
@ -257,6 +258,7 @@ export default {
animation: 150,
ghostClass: 'ghost',
dragClass: 'task-dragging',
delay: isTouchDevice() ? 150 : 0,
},
sourceBucket: 0,