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:
parent
9122a184d6
commit
d88e299358
1 changed files with 2 additions and 5 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue