diff options
author | Haocen Xu <haocen.xu@gmail.com> | 2018-07-06 12:48:46 -0400 |
---|---|---|
committer | Haocen Xu <haocen.xu@gmail.com> | 2018-07-06 12:48:46 -0400 |
commit | 43d86d7d5d3f3b34b0500f6d5d3afe7bd86b0060 (patch) | |
tree | 53a76eabbc909075bb4ad8f514aa6d67d2eee5ad /client/components/lists | |
parent | 6c7eab4456f8608ae3893d2200b759d426863cd2 (diff) | |
download | wekan-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.js | 7 |
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()); |