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
1 changed files with 2 additions and 5 deletions

View File

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