summaryrefslogtreecommitdiffstats
path: root/client/components/swimlanes
diff options
context:
space:
mode:
authorHaocen Xu <haocen.xu@gmail.com>2018-07-06 12:48:46 -0400
committerHaocen Xu <haocen.xu@gmail.com>2018-07-06 12:48:46 -0400
commit43d86d7d5d3f3b34b0500f6d5d3afe7bd86b0060 (patch)
tree53a76eabbc909075bb4ad8f514aa6d67d2eee5ad /client/components/swimlanes
parent6c7eab4456f8608ae3893d2200b759d426863cd2 (diff)
downloadwekan-43d86d7d5d3f3b34b0500f6d5d3afe7bd86b0060.tar.gz
wekan-43d86d7d5d3f3b34b0500f6d5d3afe7bd86b0060.tar.bz2
wekan-43d86d7d5d3f3b34b0500f6d5d3afe7bd86b0060.zip
Hotfix for mobile device
Diffstat (limited to 'client/components/swimlanes')
-rw-r--r--client/components/swimlanes/swimlanes.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/client/components/swimlanes/swimlanes.js b/client/components/swimlanes/swimlanes.js
index c67fe6af..2acf4a82 100644
--- a/client/components/swimlanes/swimlanes.js
+++ b/client/components/swimlanes/swimlanes.js
@@ -1,4 +1,4 @@
-const { calculateIndex } = Utils;
+const { calculateIndex, enableClickOnTouch } = Utils;
function currentCardIsInThisList(listId, swimlaneId) {
const currentCard = Cards.findOne(Session.get('currentCard'));
@@ -66,6 +66,11 @@ function initSortable(boardComponent, $listsDom) {
},
});
+ // ugly touch event hotfix
+ $('.js-list:not(.js-list-composer)').each(function() {
+ enableClickOnTouch(this);
+ });
+
function userIsMember() {
return Meteor.user() && Meteor.user().isBoardMember() && !Meteor.user().isCommentOnly();
}