Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix(ui): touchAction on the sortable row style object is now conditional on isDragging (#1098)

Tin Severfad643e529ef
diff --git a/apps/web/src/components/backlog-list-view/backlog-task-row.tsx b/apps/web/src/components/backlog-list-view/backlog-task-row.tsx
index a024b9b83..cd9da5802 100644
--- a/apps/web/src/components/backlog-list-view/backlog-task-row.tsx
+++ b/apps/web/src/components/backlog-list-view/backlog-task-row.tsx
@@ -76,7 +76,7 @@ export default function BacklogTaskRow({ task }: BacklogTaskRowProps) {
transform: CSS.Transform.toString(transform),
transition:
transition || "transform 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94)",
- touchAction: "none",
+ touchAction: isDragging ? "none" : "auto",
};
const handleClick = (e: React.MouseEvent) => {
diff --git a/apps/web/src/components/list-view/task-row.tsx b/apps/web/src/components/list-view/task-row.tsx
index 19c93cfca..110653ced 100644
--- a/apps/web/src/components/list-view/task-row.tsx
+++ b/apps/web/src/components/list-view/task-row.tsx
@@ -121,7 +121,7 @@ function TaskRow({ task, projectSlug }: TaskRowProps) {
transform: CSS.Transform.toString(transform),
transition:
transition || "transform 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94)",
- touchAction: "none",
+ touchAction: isDragging ? "none" : "auto",
};
const handleClick = (e: React.MouseEvent) => {