From 4ae72740cb013893f9d9c604c4a6960e3c72a84a Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 15 Dec 2025 16:15:37 +0100 Subject: [PATCH] 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 --- frontend/src/components/project/views/ProjectKanban.vue | 2 +- frontend/src/components/project/views/ProjectList.vue | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/project/views/ProjectKanban.vue b/frontend/src/components/project/views/ProjectKanban.vue index 222963747..556b9e6b3 100644 --- a/frontend/src/components/project/views/ProjectKanban.vue +++ b/frontend/src/components/project/views/ProjectKanban.vue @@ -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 diff --git a/frontend/src/components/project/views/ProjectList.vue b/frontend/src/components/project/views/ProjectList.vue index 763db8070..cf51ece1e 100644 --- a/frontend/src/components/project/views/ProjectList.vue +++ b/frontend/src/components/project/views/ProjectList.vue @@ -60,6 +60,8 @@ type: 'transition-group' }" :animation="100" + :delay-on-touch-only="true" + :delay="1000" ghost-class="task-ghost" @start="handleDragStart" @end="saveTaskPosition"