mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-04 13:09:41 +00:00
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:
parent
d03e5e93b0
commit
fa38b22003
1 changed files with 4 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue