diff options
Diffstat (limited to 'components')
-rw-r--r-- | components/slideprops.tsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/slideprops.tsx b/components/slideprops.tsx index aba5c07..0b0ee5f 100644 --- a/components/slideprops.tsx +++ b/components/slideprops.tsx @@ -55,6 +55,11 @@ export default function SlideProperties(props: SlidePropertiesPropsType) { type='number' value={(props.slide as State<loopSlide>).frame.get() - (props.slide as State<loopSlide>).beginFrame.get()} + onChange={e => { + var len = Number(e.target.value); + var frame = (props.slide as State<loopSlide>).beginFrame.get() + len; + updateProp<loopSlide>('frame', 'frame')(frame); + }} /> <div className='spacer' /> <TimecodeInput |