forked from vikunja/frontend
fix: no drag delay when using mouse on touch device
This commit is contained in:
parent
50c1a2e4d5
commit
8a9a5576c6
@ -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…
x
Reference in New Issue
Block a user