summaryrefslogtreecommitdiffstats
path: root/client/components/boards/boardsList.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2020-05-16 03:08:05 +0300
committerLauri Ojansivu <x@xet7.org>2020-05-16 03:08:05 +0300
commit98e255ccece1b7bf76119c26b1c5f834cf99c940 (patch)
tree0d56b453d9bf3ebf93968bd8fefd70a682aa1154 /client/components/boards/boardsList.js
parent4879df024403c53400261e55ff51f1ab3dc5ffb8 (diff)
downloadwekan-98e255ccece1b7bf76119c26b1c5f834cf99c940.tar.gz
wekan-98e255ccece1b7bf76119c26b1c5f834cf99c940.tar.bz2
wekan-98e255ccece1b7bf76119c26b1c5f834cf99c940.zip
Fix Can't Scroll on All Boards on mobile phone. Added drag handles.
Thanks to xet7 ! Fixes #3096
Diffstat (limited to 'client/components/boards/boardsList.js')
-rw-r--r--client/components/boards/boardsList.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/components/boards/boardsList.js b/client/components/boards/boardsList.js
index b99c0c31..ddc10324 100644
--- a/client/components/boards/boardsList.js
+++ b/client/components/boards/boardsList.js
@@ -72,6 +72,12 @@ BlazeComponent.extendComponent({
// Disable drag-dropping if the current user is not a board member or is comment only
this.autorun(() => {
+ if (Utils.isMiniScreen()) {
+ $boards.sortable({
+ handle: '.board-handle',
+ });
+ }
+
$boards.sortable('option', 'disabled', !userIsAllowedToMove());
});
},