From 32893a65bbf52ecfe390a37642bba505083957d8 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Thu, 24 Jun 2021 17:30:25 +0200 Subject: selection draggin/modifySlide working again --- pages/editor.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'pages') diff --git a/pages/editor.tsx b/pages/editor.tsx index 8fcb905..e890d0b 100644 --- a/pages/editor.tsx +++ b/pages/editor.tsx @@ -117,7 +117,7 @@ function TimelineKeyframe(props: { function modifySlide(newProps: Partial) { var slide = workingTimeline.find(s => s.value.id == props.slide.id); - slide.set(Object.assign(slide.value, newProps)); + slide.set(Object.assign({}, slide.value, newProps)); } var dragRef = useRef(null); @@ -212,10 +212,10 @@ function TimelineKeyframe(props: { id={'slide-' + props.slide.id} ref={mouseUpListener} > -
+ {props.slide.type == 'loop' - ?
@@ -225,11 +225,11 @@ function TimelineKeyframe(props: { -
+
: } -
+ ; } -- cgit v1.2.3