Add 100ms delay to draggable on touch devices

Makes tapping the +/- and checkbox possible and also fixes scrolling on mobile.
This commit is contained in:
Carl Vuorinen
2020-04-26 18:03:23 +03:00
parent d03e5e93b0
commit fa38b22003

View File

@@ -81,6 +81,8 @@
ref="tasksList"
class="sortable-tasks"
:options="{disabled: activeFilter.label === 'scheduled' || !isUser, scrollSensitivity: 64}"
:delay-on-touch-only="true"
:delay="100"
@update="taskSorted"
@start="isDragging(true)"
@end="isDragging(false)"
@@ -101,6 +103,8 @@
<draggable
ref="rewardsList"
class="reward-items"
:delay-on-touch-only="true"
:delay="100"
@update="rewardSorted"
@start="rewardDragStart"
@end="rewardDragEnd"