editor/welcome: Stop on click.

Don't reset the position.
This commit is contained in:
Laurens Valk
2022-12-02 09:20:08 +01:00
committed by laurensvalk
parent 545cf786af
commit 65e5e6af08
+1 -1
View File
@@ -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: