Spaces:
Running
Running
use 6 steps
Browse files
src/components/ui-controls.tsx
CHANGED
|
@@ -133,7 +133,7 @@ export const UIControls = () => {
|
|
| 133 |
value={scrambleLength}
|
| 134 |
onChange={(value) => setScrambleLength(value as number)}
|
| 135 |
minValue={1}
|
| 136 |
-
maxValue={
|
| 137 |
step={1}
|
| 138 |
/>
|
| 139 |
</div>
|
|
|
|
| 133 |
value={scrambleLength}
|
| 134 |
onChange={(value) => setScrambleLength(value as number)}
|
| 135 |
minValue={1}
|
| 136 |
+
maxValue={6}
|
| 137 |
step={1}
|
| 138 |
/>
|
| 139 |
</div>
|
src/contexts/control-context.tsx
CHANGED
|
@@ -27,7 +27,7 @@ export const ControlContext = createContext<ControlContextType>({
|
|
| 27 |
setCubeRoughness: () => {},
|
| 28 |
cubeSpeed: 8,
|
| 29 |
setCubeSpeed: () => {},
|
| 30 |
-
scrambleLength:
|
| 31 |
setScrambleLength: () => {},
|
| 32 |
background: 'sunset',
|
| 33 |
setBackground: () => {},
|
|
@@ -43,7 +43,7 @@ export const ControlProvider = ({ children }: { children: React.ReactNode }) =>
|
|
| 43 |
const [showRotationIndicators, setShowRotationIndicators] = useState(false);
|
| 44 |
const [cubeRoughness, setCubeRoughness] = useState(0.5);
|
| 45 |
const [cubeSpeed, setCubeSpeed] = useState(8);
|
| 46 |
-
const [scrambleLength, setScrambleLength] = useState(
|
| 47 |
const [background, setBackground] = useState<PresetsType>('sunset');
|
| 48 |
const [rubiksCubeRef, setRubiksCubeRef] = useState<RefObject<RubiksCubeRef | null> | undefined>(undefined);
|
| 49 |
|
|
|
|
| 27 |
setCubeRoughness: () => {},
|
| 28 |
cubeSpeed: 8,
|
| 29 |
setCubeSpeed: () => {},
|
| 30 |
+
scrambleLength: 6,
|
| 31 |
setScrambleLength: () => {},
|
| 32 |
background: 'sunset',
|
| 33 |
setBackground: () => {},
|
|
|
|
| 43 |
const [showRotationIndicators, setShowRotationIndicators] = useState(false);
|
| 44 |
const [cubeRoughness, setCubeRoughness] = useState(0.5);
|
| 45 |
const [cubeSpeed, setCubeSpeed] = useState(8);
|
| 46 |
+
const [scrambleLength, setScrambleLength] = useState(6);
|
| 47 |
const [background, setBackground] = useState<PresetsType>('sunset');
|
| 48 |
const [rubiksCubeRef, setRubiksCubeRef] = useState<RefObject<RubiksCubeRef | null> | undefined>(undefined);
|
| 49 |
|