summaryrefslogtreecommitdiffstats
path: root/client/components/boards/boardBody.js
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/boards/boardBody.js
parent6c7eab4456f8608ae3893d2200b759d426863cd2 (diff)
downloadwekan-43d86d7d5d3f3b34b0500f6d5d3afe7bd86b0060.tar.gz
wekan-43d86d7d5d3f3b34b0500f6d5d3afe7bd86b0060.tar.bz2
wekan-43d86d7d5d3f3b34b0500f6d5d3afe7bd86b0060.zip
Hotfix for mobile device
Diffstat (limited to 'client/components/boards/boardBody.js')
-rw-r--r--client/components/boards/boardBody.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/client/components/boards/boardBody.js b/client/components/boards/boardBody.js
index 68ac8b27..6ff40ca4 100644
--- a/client/components/boards/boardBody.js
+++ b/client/components/boards/boardBody.js
@@ -1,5 +1,5 @@
const subManager = new SubsManager();
-const { calculateIndex } = Utils;
+const { calculateIndex, enableClickOnTouch } = Utils;
BlazeComponent.extendComponent({
onCreated() {
@@ -74,6 +74,11 @@ BlazeComponent.extendComponent({
},
});
+ // ugly touch event hotfix
+ $('.js-swimlane:not(.placeholder)').each(function() {
+ enableClickOnTouch(this);
+ });
+
function userIsMember() {
return Meteor.user() && Meteor.user().isBoardMember() && !Meteor.user().isCommentOnly();
}