Skip to content

🎥 Make videos programmatically with React

Allow to drag on time marks in Remotion Studio

Jonny Burger3a6d0485c21c
diff --git a/packages/studio/src/components/Timeline/TimelineTimeIndicators.tsx b/packages/studio/src/components/Timeline/TimelineTimeIndicators.tsx
index bb216b5964..f09a9fc581 100644
--- a/packages/studio/src/components/Timeline/TimelineTimeIndicators.tsx
+++ b/packages/studio/src/components/Timeline/TimelineTimeIndicators.tsx
@@ -131,13 +131,14 @@ const Inner: React.FC<{
};
}, []);
- const style = useMemo(() => {
+ const style: React.CSSProperties = useMemo(() => {
return {
...container,
width: windowWidth - SPLITTER_HANDLE_SIZE / 2,
overflow: 'hidden',
// Since
marginLeft: SPLITTER_HANDLE_SIZE / 2,
+ pointerEvents: 'none',
};
}, [windowWidth]);
@@ -190,8 +191,8 @@ const Inner: React.FC<{
index % fps === 0
? 10
: (index / frameMarkerEveryNth) % 2 === 0
- ? 5
- : 2,
+ ? 5
+ : 2,
},
showTime: false,
};