summaryrefslogtreecommitdiffstats
path: root/client/components/lists/list.js
diff options
context:
space:
mode:
authorhupptechnologies <git@hupp.in>2018-12-20 14:42:46 +0530
committerhupptechnologies <git@hupp.in>2018-12-20 14:42:46 +0530
commita9be6b17b9c8c6b4a59a89b9d3670cca1a6ed9af (patch)
tree474d4f937997bff5aadef65eb6585f75e420afa0 /client/components/lists/list.js
parentac6f8e85519da2b7eabcec6e598c96b5fb9a2cfa (diff)
downloadwekan-a9be6b17b9c8c6b4a59a89b9d3670cca1a6ed9af.tar.gz
wekan-a9be6b17b9c8c6b4a59a89b9d3670cca1a6ed9af.tar.bz2
wekan-a9be6b17b9c8c6b4a59a89b9d3670cca1a6ed9af.zip
Issue : UI feature suggestion: drag handles and long press #1772
Resolved #1772
Diffstat (limited to 'client/components/lists/list.js')
-rw-r--r--client/components/lists/list.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/components/lists/list.js b/client/components/lists/list.js
index 00908faa..043cb77c 100644
--- a/client/components/lists/list.js
+++ b/client/components/lists/list.js
@@ -26,6 +26,13 @@ BlazeComponent.extendComponent({
const itemsSelector = '.js-minicard:not(.placeholder, .js-card-composer)';
const $cards = this.$('.js-minicards');
+
+ if(window.matchMedia('(max-width: 1199px)').matches) {
+ $( '.js-minicards' ).sortable({
+ handle: '.handle',
+ });
+ }
+
$cards.sortable({
connectWith: '.js-minicards:not(.js-list-full)',
tolerance: 'pointer',