fix(frontend): require 1s press-and-hold to drag tasks on mobile (#1987)
## Summary - Adds a 1-second press-and-hold delay before drag mode activates on touch devices - Allows users to tap tasks to open them on mobile without accidentally triggering drag mode - Only affects touch devices (desktop behavior unchanged via `delayOnTouchOnly`) Fixes #1986
This commit is contained in:
parent
452770e749
commit
4ae72740cb
|
|
@ -338,7 +338,7 @@ const DRAG_OPTIONS = {
|
|||
ghostClass: 'ghost',
|
||||
dragClass: 'task-dragging',
|
||||
delayOnTouchOnly: true,
|
||||
delay: 150,
|
||||
delay: 1000,
|
||||
} as const
|
||||
|
||||
const MIN_SCROLL_HEIGHT_PERCENT = 0.25
|
||||
|
|
|
|||
|
|
@ -60,6 +60,8 @@
|
|||
type: 'transition-group'
|
||||
}"
|
||||
:animation="100"
|
||||
:delay-on-touch-only="true"
|
||||
:delay="1000"
|
||||
ghost-class="task-ghost"
|
||||
@start="handleDragStart"
|
||||
@end="saveTaskPosition"
|
||||
|
|
|
|||
Loading…
Reference in New Issue