aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2021-07-26 11:49:24 +0200
committerlonkaars <loek@pipeframe.xyz>2021-07-26 11:49:24 +0200
commita6c8792ed73b9c29a11d00920075945749ff048d (patch)
tree71b80f5be4fe36e08f2a53cee060bc1496a98680
parent9186cfc2f8da936f4d5c08515e8a2d6b1b1b1f3a (diff)
loop length change works now :tada:
-rw-r--r--components/slideprops.tsx5
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