From 01c491aee0f25b1158642e00ad2dd167e2534974 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Tue, 12 Mar 2024 17:40:58 -0500 Subject: [PATCH] feat: 1 more decimal in pitch and yaw --- .../tankopedia/[id]/components/QuickInputs/index.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/tools/tankopedia/[id]/components/QuickInputs/index.tsx b/src/app/tools/tankopedia/[id]/components/QuickInputs/index.tsx index fada3703f..64e64ec3c 100644 --- a/src/app/tools/tankopedia/[id]/components/QuickInputs/index.tsx +++ b/src/app/tools/tankopedia/[id]/components/QuickInputs/index.tsx @@ -28,12 +28,12 @@ export function RotationInputs({ isFullScreen }: RotationInputsProps) { const initialGunPitch = tankModelDefinition.turretRotation?.pitch ?? 0; useEffect(() => { - turretYawInput.current!.value = radToDeg(protagonist.yaw).toFixed(0); + turretYawInput.current!.value = radToDeg(protagonist.yaw).toFixed(1); }, [protagonist.yaw]); useEffect(() => { gunPitchInput.current!.value = ( -radToDeg(protagonist.pitch) + initialGunPitch - ).toFixed(0); + ).toFixed(1); }, [protagonist.pitch]); return ( @@ -80,7 +80,7 @@ export function RotationInputs({ isFullScreen }: RotationInputsProps) { state.protagonist!.yaw = yaw; }); turretYawInput.current!.value = radToDeg(protagonist.yaw).toFixed( - 0, + 1, ); }} onKeyDown={(event) => { @@ -130,7 +130,7 @@ export function RotationInputs({ isFullScreen }: RotationInputsProps) { }); gunPitchInput.current!.value = ( -radToDeg(protagonist.pitch) + initialGunPitch - ).toFixed(0); + ).toFixed(1); }} onKeyDown={(event) => { if (event.key === 'Enter') {