Skip to content

🎥 Make videos programmatically with React

fix(studio): center selected inspector effects

Jonny Burgerd93170aa9233
diff --git a/packages/studio/src/components/InspectorSequenceSection.tsx b/packages/studio/src/components/InspectorSequenceSection.tsx
index 62e17b1309..8eb6a9cda3 100644
--- a/packages/studio/src/components/InspectorSequenceSection.tsx
+++ b/packages/studio/src/components/InspectorSequenceSection.tsx
@@ -530,7 +530,7 @@ export const InspectorSequenceSection: React.FC<{
return;
}
- selectedEffectRowRef.current.scrollIntoView({block: 'nearest'});
+ selectedEffectRowRef.current.scrollIntoView({block: 'center'});
scrolledEffectKey.current = selectedEffectKey;
}, [effectRows, selectedEffectKey]);