From 90bc9ec7073eea56485901d23481a6f780a6bade Mon Sep 17 00:00:00 2001 From: Nathaniel Sabanski Date: Sat, 17 Dec 2022 13:35:34 -0800 Subject: [PATCH 1/2] Mobile fix for Project view. Delay sorting on mobile, to ensure scrolling is possible. --- web_src/js/features/repo-projects.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web_src/js/features/repo-projects.js b/web_src/js/features/repo-projects.js index 9777e6c8ecc37..515c8a52305a6 100644 --- a/web_src/js/features/repo-projects.js +++ b/web_src/js/features/repo-projects.js @@ -49,6 +49,8 @@ async function initRepoProjectSortable() { filter: '[data-id="0"]', animation: 150, ghostClass: 'card-ghost', + delayOnTouchOnly: true, + delay: 1000, onSort: () => { boardColumns = mainBoard.getElementsByClassName('board-column'); for (let i = 0; i < boardColumns.length; i++) { @@ -76,6 +78,8 @@ async function initRepoProjectSortable() { ghostClass: 'card-ghost', onAdd: moveIssue, onUpdate: moveIssue, + delayOnTouchOnly: true, + delay: 1000, }); } } From c5dadd0646bbbfb6b47f3cda83696c31c3243eb6 Mon Sep 17 00:00:00 2001 From: Nathaniel Sabanski Date: Sat, 17 Dec 2022 14:30:51 -0800 Subject: [PATCH 2/2] Changed delay to 500 ms. --- web_src/js/features/repo-projects.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web_src/js/features/repo-projects.js b/web_src/js/features/repo-projects.js index 515c8a52305a6..78a9b14ad0de0 100644 --- a/web_src/js/features/repo-projects.js +++ b/web_src/js/features/repo-projects.js @@ -50,7 +50,7 @@ async function initRepoProjectSortable() { animation: 150, ghostClass: 'card-ghost', delayOnTouchOnly: true, - delay: 1000, + delay: 500, onSort: () => { boardColumns = mainBoard.getElementsByClassName('board-column'); for (let i = 0; i < boardColumns.length; i++) { @@ -79,7 +79,7 @@ async function initRepoProjectSortable() { onAdd: moveIssue, onUpdate: moveIssue, delayOnTouchOnly: true, - delay: 1000, + delay: 500, }); } }