浏览代码

More robust logic if isMiniScreen or isShowDesktopDragHandles

Martin Filser 3 年之前
父节点
当前提交
7ced602be4
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      client/components/boards/boardBody.js
  2. 1 1
      client/components/lists/list.js
  3. 1 1
      client/components/swimlanes/swimlanes.js

+ 1 - 1
client/components/boards/boardBody.js

@@ -195,7 +195,7 @@ BlazeComponent.extendComponent({
         $swimlanesDom.sortable({
           handle: '.js-swimlane-header-handle',
         });
-      } else if (!Utils.isMiniScreen() && !Utils.isShowDesktopDragHandles()) {
+      } else {
         $swimlanesDom.sortable({
           handle: '.swimlane-header',
         });

+ 1 - 1
client/components/lists/list.js

@@ -121,7 +121,7 @@ BlazeComponent.extendComponent({
         $cards.sortable({
           handle: '.handle',
         });
-      } else if (!Utils.isMiniScreen() && !Utils.isShowDesktopDragHandles()) {
+      } else {
         $cards.sortable({
           handle: '.minicard',
         });

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

@@ -99,7 +99,7 @@ function initSortable(boardComponent, $listsDom) {
       $listsDom.sortable({
         handle: '.js-list-handle',
       });
-    } else if (!Utils.isMiniScreen() && !Utils.isShowDesktopDragHandles()) {
+    } else {
       $listsDom.sortable({
         handle: '.js-list-header',
       });