瀏覽代碼

Merge branch 'feature-drag-handle'

Lauri Ojansivu 5 年之前
父節點
當前提交
75dc5f226c
共有 2 個文件被更改,包括 7 次插入0 次删除
  1. 6 0
      client/components/lists/list.js
  2. 1 0
      client/components/swimlanes/swimlanes.js

+ 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,