From 7f17f985eeb0d1e8ae2215e8825b5382ed00da59 Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Fri, 8 Jul 2022 10:55:20 +0200 Subject: [PATCH] Fix `PlayheadPositionPopover` not accepting '0' as input --- .../RightOverlay/PlayheadPositionPopover.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/theatre/studio/src/panels/SequenceEditorPanel/RightOverlay/PlayheadPositionPopover.tsx b/theatre/studio/src/panels/SequenceEditorPanel/RightOverlay/PlayheadPositionPopover.tsx index 492d673..0f704a4 100644 --- a/theatre/studio/src/panels/SequenceEditorPanel/RightOverlay/PlayheadPositionPopover.tsx +++ b/theatre/studio/src/panels/SequenceEditorPanel/RightOverlay/PlayheadPositionPopover.tsx @@ -10,7 +10,7 @@ import {val} from '@theatre/dataverse' import type {Pointer} from '@theatre/dataverse' import clamp from 'lodash-es/clamp' -const greaterThanZero = (v: number) => isFinite(v) && v > 0 +const greaterThanOrEqualToZero = (v: number) => isFinite(v) && v >= 0 const Container = styled.div` display: flex; @@ -78,7 +78,7 @@ const PlayheadPositionPopover: React.FC<{