diff options
author | NicoP-S <paetni1@gmail.com> | 2020-04-26 00:37:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-26 00:37:30 +0200 |
commit | 8e709c1b79b3134d0be95fa922c42d02bb165005 (patch) | |
tree | 296574dd4f710e043c06538e39ec0b709f7924e0 /client/components/boards/boardBody.js | |
parent | edf52bc4382823ed8768251954371094a849213e (diff) | |
parent | 3908fe0ab875cf4b793c884a3d82df2f1a3b2686 (diff) | |
download | wekan-8e709c1b79b3134d0be95fa922c42d02bb165005.tar.gz wekan-8e709c1b79b3134d0be95fa922c42d02bb165005.tar.bz2 wekan-8e709c1b79b3134d0be95fa922c42d02bb165005.zip |
Merge pull request #6 from wekan/master
Update
Diffstat (limited to 'client/components/boards/boardBody.js')
-rw-r--r-- | client/components/boards/boardBody.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/client/components/boards/boardBody.js b/client/components/boards/boardBody.js index e70a9f67..4e473f18 100644 --- a/client/components/boards/boardBody.js +++ b/client/components/boards/boardBody.js @@ -1,7 +1,7 @@ import { Cookies } from 'meteor/ostrio:cookies'; const cookies = new Cookies(); const subManager = new SubsManager(); -const { calculateIndex, enableClickOnTouch } = Utils; +const { calculateIndex } = Utils; const swimlaneWhileSortingHeight = 150; BlazeComponent.extendComponent({ @@ -191,9 +191,6 @@ BlazeComponent.extendComponent({ }, }); - // ugly touch event hotfix - enableClickOnTouch('.js-swimlane:not(.placeholder)'); - this.autorun(() => { let showDesktopDragHandles = false; currentUser = Meteor.user(); @@ -205,7 +202,7 @@ BlazeComponent.extendComponent({ } else { showDesktopDragHandles = false; } - if (!Utils.isMiniScreen() && showDesktopDragHandles) { + if (Utils.isMiniScreen() || showDesktopDragHandles) { $swimlanesDom.sortable({ handle: '.js-swimlane-header-handle', }); @@ -215,9 +212,8 @@ BlazeComponent.extendComponent({ }); } - // Disable drag-dropping if the current user is not a board member or is miniscreen + // Disable drag-dropping if the current user is not a board member $swimlanesDom.sortable('option', 'disabled', !userIsMember()); - $swimlanesDom.sortable('option', 'disabled', Utils.isMiniScreen()); }); function userIsMember() { |