mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Setting marker end time with clock button uses full precision (#5437)
This commit is contained in:
@@ -232,10 +232,7 @@ export const SceneMarkerForm: React.FC<ISceneMarkerForm> = ({
|
|||||||
value={formik.values.end_seconds}
|
value={formik.values.end_seconds}
|
||||||
setValue={(v) => formik.setFieldValue("end_seconds", v ?? null)}
|
setValue={(v) => formik.setFieldValue("end_seconds", v ?? null)}
|
||||||
onReset={() =>
|
onReset={() =>
|
||||||
formik.setFieldValue(
|
formik.setFieldValue("end_seconds", getPlayerPosition() ?? 0)
|
||||||
"end_seconds",
|
|
||||||
Math.round(getPlayerPosition() ?? 0)
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
error={error}
|
error={error}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user