From 28c981053a58781a62d5994e1733e4911a2fa8fa Mon Sep 17 00:00:00 2001 From: Minasuki Hikimuna Date: Sat, 2 Nov 2024 14:10:02 +0200 Subject: [PATCH] Setting marker end time with clock button uses full precision This is similar to how start time setting already worked. fix formatting --- .../src/components/Scenes/SceneDetails/SceneMarkerForm.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ui/v2.5/src/components/Scenes/SceneDetails/SceneMarkerForm.tsx b/ui/v2.5/src/components/Scenes/SceneDetails/SceneMarkerForm.tsx index baaf028dcce..da4d679cc20 100644 --- a/ui/v2.5/src/components/Scenes/SceneDetails/SceneMarkerForm.tsx +++ b/ui/v2.5/src/components/Scenes/SceneDetails/SceneMarkerForm.tsx @@ -232,10 +232,7 @@ export const SceneMarkerForm: React.FC = ({ value={formik.values.end_seconds} setValue={(v) => formik.setFieldValue("end_seconds", v ?? null)} onReset={() => - formik.setFieldValue( - "end_seconds", - Math.round(getPlayerPosition() ?? 0) - ) + formik.setFieldValue("end_seconds", getPlayerPosition() ?? 0) } error={error} />