Skip to content

🎥 Make videos programmatically with React

fixing CI

Jonny Burger701d7afe1d40
diff --git a/packages/cli/src/editor/components/PlayPause.tsx b/packages/cli/src/editor/components/PlayPause.tsx
index 38e2485757..6a0c0ed4a5 100644
--- a/packages/cli/src/editor/components/PlayPause.tsx
+++ b/packages/cli/src/editor/components/PlayPause.tsx
@@ -26,12 +26,14 @@ export const PlayPause: React.FC = () => {
if (!video) {
return;
}
+
if (e.code === 'Space') {
if (playing) {
pause();
} else {
play();
}
+
e.preventDefault();
}
diff --git a/packages/cli/src/editor/components/Timeline/TimelineDragHandler.tsx b/packages/cli/src/editor/components/Timeline/TimelineDragHandler.tsx
index cae1631845..9e20f905b7 100644
--- a/packages/cli/src/editor/components/Timeline/TimelineDragHandler.tsx
+++ b/packages/cli/src/editor/components/Timeline/TimelineDragHandler.tsx
@@ -104,6 +104,7 @@ export const TimelineDragHandler: React.FC = ({children}) => {
if (!dragging.dragging) {
return;
}
+
if (dragging.wasPlaying) {
play();
}