From 6a68736ca5ef97156cd167150bd728247981fbdd Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 18 Sep 2024 18:00:27 +0200 Subject: [PATCH] fix(task): dragging and dropping on mobile This change fixes a regression introduced in 1cbb93ea9beea3049c469ba7cc05b07beebf2062. In that change, the whole task area was made clickable using mouse events directly. Unfortunately, this also prevented the parent component of the task component to recieve them, essentially never getting notified about the mouse movement and thus never dragging the task. I don't know why this is only a problem on Safari, but it might be related to https://github.com/SortableJS/Sortable/issues/1571#issuecomment-535684451 Resolves https://community.vikunja.io/t/task-re-ordering-is-not-working-in-safari/1916 Resolves https://kolaente.dev/vikunja/vikunja/issues/2092 Resolves https://github.com/go-vikunja/vikunja/issues/304 (cherry picked from commit abf92e29facfa91a75fdce4ab04729010cb510f1) --- frontend/.gitignore | 1 + .../tasks/partials/SingleTaskInProject.vue | 36 +++++++++---------- 2 files changed, 18 insertions(+), 19 deletions(-) diff --git a/frontend/.gitignore b/frontend/.gitignore index e6854eea8..372ecb5dd 100644 --- a/frontend/.gitignore +++ b/frontend/.gitignore @@ -13,6 +13,7 @@ node_modules dist coverage *.zip +.vite/ # Test files cypress/screenshots diff --git a/frontend/src/components/tasks/partials/SingleTaskInProject.vue b/frontend/src/components/tasks/partials/SingleTaskInProject.vue index f6fedcfad..3f9c662aa 100644 --- a/frontend/src/components/tasks/partials/SingleTaskInProject.vue +++ b/frontend/src/components/tasks/partials/SingleTaskInProject.vue @@ -1,17 +1,17 @@