From 83517f59b46b9d158a7b6ebb75389141874335c8 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Fri, 22 Mar 2024 08:31:20 -0600 Subject: [PATCH] WebUI Fixes (#10608) * Fix camera with - * Fix not playing player after making slight adjustment * Fix hovering getting stuck --- web/src/components/player/PreviewPlayer.tsx | 3 ++- .../components/player/PreviewThumbnailPlayer.tsx | 14 +++++++------- .../player/dynamic/DynamicVideoController.ts | 4 ++++ web/src/views/events/RecordingView.tsx | 2 ++ 4 files changed, 15 insertions(+), 8 deletions(-) diff --git a/web/src/components/player/PreviewPlayer.tsx b/web/src/components/player/PreviewPlayer.tsx index a299cf9ec..212779f3a 100644 --- a/web/src/components/player/PreviewPlayer.tsx +++ b/web/src/components/player/PreviewPlayer.tsx @@ -352,7 +352,8 @@ function PreviewFramesPlayer({ } return previewFrames.map((frame) => - parseFloat(frame.split("-")[1].slice(undefined, -5)), + // @ts-expect-error we know this item will exist + parseFloat(frame.split("-").slice(undefined, -5)), ); }, [previewFrames]); diff --git a/web/src/components/player/PreviewThumbnailPlayer.tsx b/web/src/components/player/PreviewThumbnailPlayer.tsx index 5e9a5c651..c57e1041c 100644 --- a/web/src/components/player/PreviewThumbnailPlayer.tsx +++ b/web/src/components/player/PreviewThumbnailPlayer.tsx @@ -171,7 +171,7 @@ export default function PreviewThumbnailPlayer({ {...swipeHandlers} > {playingBack && ( -
+
+