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>
|
||||
|
||||
<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
|
||||
|
|
Loading…
Reference in a new issue