Motion playback (#10609)

* Move controls to separate component and make features configurable

* Allow playback on motion screen

* Simplify layout

* Fix seeking

* Fix playback

* fix preview scrubbing

* Fix player controls visibility

* Use opacity for both dark and light mode
This commit is contained in:
Nicolas Mowen
2024-03-22 10:56:53 -06:00
committed by GitHub
parent 83517f59b4
commit 622dddd2c4
7 changed files with 287 additions and 198 deletions

View File

@@ -353,7 +353,7 @@ function PreviewFramesPlayer({
return previewFrames.map((frame) =>
// @ts-expect-error we know this item will exist
parseFloat(frame.split("-").slice(undefined, -5)),
parseFloat(frame.split("-").at(-1).slice(undefined, -5)),
);
}, [previewFrames]);