mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Hotfix for mobile device
This commit is contained in:
parent
6c7eab4456
commit
43d86d7d5d
7 changed files with 82 additions and 12 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue