fix: no drag delay when using mouse on touch device (#748)

Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/748
Reviewed-by: konrad <k@knt.li>
Co-authored-by: simon1506 <simon.sch.dev@gmail.com>
Co-committed-by: simon1506 <simon.sch.dev@gmail.com>
This commit is contained in:
simon1506 2021-09-21 16:47:42 +00:00 committed by konrad
parent 9122a184d6
commit d88e299358

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