fix: no drag delay when using mouse on touch device

This commit is contained in:
simon1506 2021-09-13 18:20:42 +02:00
parent 50c1a2e4d5
commit 8a9a5576c6
No known key found for this signature in database
GPG Key ID: 817FD88B628A2F00

View File

@ -232,7 +232,6 @@
</template>
<script>
import isTouchDevice from 'is-touch-device'
import draggable from 'vuedraggable'
import BucketModel from '../../../models/bucket'
@ -315,10 +314,8 @@ export default {
animation: 150,
ghostClass: 'ghost',
dragClass: 'task-dragging',
}
if (isTouchDevice()) {
options.delay = 150
delay: 150,
delayOnTouchOnly: true,
}
return options