aboutsummaryrefslogtreecommitdiff
path: root/components/slideprops.tsx
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2021-07-26 12:04:45 +0200
committerlonkaars <loek@pipeframe.xyz>2021-07-26 12:04:45 +0200
commitcd63a8eafa7da59e11d141c3c879f791bb826457 (patch)
tree4eccb81b3e6f7cef865387131a0424c82526ced4 /components/slideprops.tsx
parenta6c8792ed73b9c29a11d00920075945749ff048d (diff)
speed change factor working + basic math now works :~
Diffstat (limited to 'components/slideprops.tsx')
-rw-r--r--components/slideprops.tsx6
1 files changed, 6 insertions, 0 deletions
diff --git a/components/slideprops.tsx b/components/slideprops.tsx
index 0b0ee5f..57b9230 100644
--- a/components/slideprops.tsx
+++ b/components/slideprops.tsx
@@ -105,6 +105,12 @@ export default function SlideProperties(props: SlidePropertiesPropsType) {
variant='filled'
type='number'
label='Factor'
+ value={(props.slide as State<speedChangeSlide>).newFramerate.get()
+ / props.player.project.video.framerate}
+ onChange={event =>
+ updateProp<speedChangeSlide>('newFramerate')(
+ Number(event.target.value) * props.player.project.video.framerate,
+ )}
/>
</>,
}[props.slide.value.type]}