From 579a7c8900b9df035af2f50f59c89c4617a1bec0 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Mon, 11 Mar 2024 20:42:13 -0600 Subject: [PATCH] Fix preview update (#10388) --- web/src/views/events/RecordingView.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/src/views/events/RecordingView.tsx b/web/src/views/events/RecordingView.tsx index 5f44e8605..bf9688ae4 100644 --- a/web/src/views/events/RecordingView.tsx +++ b/web/src/views/events/RecordingView.tsx @@ -186,6 +186,9 @@ export function DesktopRecordingView({ mainControllerRef.current = controller; controller.onPlayerTimeUpdate((timestamp: number) => { setCurrentTime(timestamp); + Object.values(previewRefs.current ?? {}).forEach((prev) => + prev.scrubToTimestamp(Math.floor(timestamp)), + ); }); }} />