From 65e5e6af08113aeecf301be33a85c681e6ec0735 Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Fri, 2 Dec 2022 08:47:46 +0100 Subject: [PATCH] editor/welcome: Stop on click. Don't reset the position. --- src/editor/Welcome.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/Welcome.tsx b/src/editor/Welcome.tsx index 5adcdcbb..8e0a573a 100644 --- a/src/editor/Welcome.tsx +++ b/src/editor/Welcome.tsx @@ -39,7 +39,7 @@ type Action = function reduce(state: State, action: Action): State { switch (action.type) { case ActionType.Stop: - return { ...state, rotation: defaultRotation, rotationSpeed: 0 }; + return { ...state, rotation: state.rotation, rotationSpeed: 0 }; case ActionType.ChangeSpeed: return { ...state, rotationSpeed: state.rotationSpeed + action.amount }; case ActionType.Update: