Browse Source

change layout change order

AykutSarac 2 years ago
parent
commit
d1529c50d8
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/containers/Editor/LiveEditor/helpers.ts

+ 3 - 3
src/containers/Editor/LiveEditor/helpers.ts

@@ -62,13 +62,13 @@ export function getEdgeNodes(
 export function getNextLayout(layout: CanvasDirection) {
 export function getNextLayout(layout: CanvasDirection) {
   switch (layout) {
   switch (layout) {
     case "RIGHT":
     case "RIGHT":
-      return "UP";
+      return "DOWN";
 
 
-    case "UP":
+    case "DOWN":
       return "LEFT";
       return "LEFT";
 
 
     case "LEFT":
     case "LEFT":
-      return "DOWN";
+      return "UP";
 
 
     default:
     default:
       return "RIGHT";
       return "RIGHT";