Browse Source

Drag handles continue. In progress.

Lauri Ojansivu 5 năm trước cách đây
mục cha
commit
872ed4b2f9

+ 6 - 0
client/components/lists/list.js

@@ -43,6 +43,12 @@ BlazeComponent.extendComponent({
       });
     }
 
+    if (!Utils.isMiniScreen && !showDesktopDragHandles) {
+      $('.js-minicards').sortable({
+        handle: 'list-header',
+      });
+    }
+
     $cards.sortable({
       connectWith: '.js-minicards:not(.js-list-full)',
       tolerance: 'pointer',

+ 1 - 0
client/components/swimlanes/swimlanes.js

@@ -68,6 +68,7 @@ function initSortable(boardComponent, $listsDom) {
   $listsDom.sortable({
     tolerance: 'pointer',
     helper: 'clone',
+    handle: '.js-list-header',
     items: '.js-list:not(.js-list-composer)',
     placeholder: 'list placeholder',
     distance: 7,