🎥 Make videos programmatically with React
`@remotion/studio`: Fix caption inspector jumps when selecting properties
JonnyBurger1acd77945f34
diff --git a/packages/studio/src/components/CaptionPlayheadHighlight.tsx b/packages/studio/src/components/CaptionPlayheadHighlight.tsxindex f0ffed17c0..4aec167692 100644--- a/packages/studio/src/components/CaptionPlayheadHighlight.tsx+++ b/packages/studio/src/components/CaptionPlayheadHighlight.tsx@@ -97,9 +97,12 @@ export const CaptionPlayheadHighlight: React.FC<{const index = captions.findIndex((caption) => caption.startMs <= timeMs && caption.endMs > timeMs,);+ // Selecting an inspector property must not resume caption scrolling.const isSuspended =suspended.current?.seekRevision === seekRevision &&- suspended.current.selectedItems === selectedItems;+ (suspended.current.selectedItems === selectedItems ||+ selectedItems.length !== 1 ||+ selectedItems[0].type !== 'sequence');const shouldResume = suspended.current !== null && !isSuspended;if (highlighted.current?.index === index &&