From cd63a8eafa7da59e11d141c3c879f791bb826457 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 26 Jul 2021 12:04:45 +0200 Subject: speed change factor working + basic math now works :~ --- components/slideprops.tsx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'components') 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).newFramerate.get() + / props.player.project.video.framerate} + onChange={event => + updateProp('newFramerate')( + Number(event.target.value) * props.player.project.video.framerate, + )} /> , }[props.slide.value.type]} -- cgit v1.2.3