From a6c8792ed73b9c29a11d00920075945749ff048d Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 26 Jul 2021 11:49:24 +0200 Subject: loop length change works now :tada: --- components/slideprops.tsx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'components') 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).frame.get() - (props.slide as State).beginFrame.get()} + onChange={e => { + var len = Number(e.target.value); + var frame = (props.slide as State).beginFrame.get() + len; + updateProp('frame', 'frame')(frame); + }} />