aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2021-05-14 10:28:51 +0200
committerlonkaars <loek@pipeframe.xyz>2021-05-14 10:28:51 +0200
commitd311c9f5a00fe580f3ba10f4655fd113717c26ea (patch)
treee4b88de2d7d38e9fd7399a277eb141bc4e31aac4
parent7e4f1f5fc3c57a700bef42740d9ff48f2b437a04 (diff)
speed change when going back in slides
-rw-r--r--pages/present.tsx2
-rw-r--r--styles/presentation.css7
2 files changed, 3 insertions, 6 deletions
diff --git a/pages/present.tsx b/pages/present.tsx
index 9e65e29..f8f6bc9 100644
--- a/pages/present.tsx
+++ b/pages/present.tsx
@@ -51,6 +51,7 @@ class TimedVideoPlayer {
jumpToSlide(slide: slide) {
this.jumpToFrame(slide.frame);
+ this.player.playbackRate = this.framerate / ((slide as speedChangeSlide).newFramerate || this.framerate);
this.player.pause();
}
@@ -165,7 +166,6 @@ class TimedVideoPlayer {
if (!slide) return;
this.jumpToSlide(slide);
- console.log(this.slide, slide);
}
}
diff --git a/styles/presentation.css b/styles/presentation.css
index 0297484..4f872e2 100644
--- a/styles/presentation.css
+++ b/styles/presentation.css
@@ -74,9 +74,6 @@
background-color: var(--error);
}
-#menu .info .buttons .inner .MuiButton-root {
- margin: 0;
- margin-right: 16px;
- margin-top: 16px;
-}
+#menu .info .buttons .inner .MuiButton-root { margin: 8px; }
+#menu .info .buttons .inner { margin: -8px; }