2
0
Эх сурвалжийг харах

More robust logic if isMiniScreen or isShowDesktopDragHandles

Martin Filser 3 жил өмнө
parent
commit
7ced602be4

+ 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',
       });