diff options
author | Lauri Ojansivu <x@xet7.org> | 2020-05-16 03:08:05 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2020-05-16 03:08:05 +0300 |
commit | 98e255ccece1b7bf76119c26b1c5f834cf99c940 (patch) | |
tree | 0d56b453d9bf3ebf93968bd8fefd70a682aa1154 /client/components/boards/boardsList.js | |
parent | 4879df024403c53400261e55ff51f1ab3dc5ffb8 (diff) | |
download | wekan-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.js | 6 |
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()); }); }, |