From cd488c238492c009eb9f279602b2a1adb800097b Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Tue, 13 Feb 2024 17:33:58 +0100 Subject: [PATCH] :children_crossing: Fix shift key to scroll the graph horizontally Closes #1214 --- apps/builder/src/features/graph/components/Graph.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/builder/src/features/graph/components/Graph.tsx b/apps/builder/src/features/graph/components/Graph.tsx index 43402a346..7cf7fc398 100644 --- a/apps/builder/src/features/graph/components/Graph.tsx +++ b/apps/builder/src/features/graph/components/Graph.tsx @@ -225,7 +225,7 @@ export const Graph = ({ setGraphPosition({ ...graphPosition, - x: graphPosition.x - dx, + x: shiftKey ? graphPosition.x - dy : graphPosition.x - dx, y: shiftKey ? graphPosition.y : graphPosition.y - dy, }) },