summaryrefslogtreecommitdiffstats
path: root/client/components/lists
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/lists
parent6c7eab4456f8608ae3893d2200b759d426863cd2 (diff)
downloadwekan-43d86d7d5d3f3b34b0500f6d5d3afe7bd86b0060.tar.gz
wekan-43d86d7d5d3f3b34b0500f6d5d3afe7bd86b0060.tar.bz2
wekan-43d86d7d5d3f3b34b0500f6d5d3afe7bd86b0060.zip
Hotfix for mobile device
Diffstat (limited to 'client/components/lists')
-rw-r--r--client/components/lists/list.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/client/components/lists/list.js b/client/components/lists/list.js
index 38a87674..3f7c6dea 100644
--- a/client/components/lists/list.js
+++ b/client/components/lists/list.js
@@ -1,4 +1,4 @@
-const { calculateIndex } = Utils;
+const { calculateIndex, enableClickOnTouch } = Utils;
BlazeComponent.extendComponent({
// Proxy
@@ -83,6 +83,11 @@ BlazeComponent.extendComponent({
},
});
+ // ugly touch event hotfix
+ $(itemsSelector).each(function() {
+ enableClickOnTouch(this);
+ });
+
// Disable drag-dropping if the current user is not a board member or is comment only
this.autorun(() => {
$cards.sortable('option', 'disabled', !userIsMember());