Fix preview update (#10388)

This commit is contained in:
Nicolas Mowen 2024-03-11 20:42:13 -06:00 committed by GitHub
parent 1c5d6765a1
commit 579a7c8900
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -186,6 +186,9 @@ export function DesktopRecordingView({
mainControllerRef.current = controller; mainControllerRef.current = controller;
controller.onPlayerTimeUpdate((timestamp: number) => { controller.onPlayerTimeUpdate((timestamp: number) => {
setCurrentTime(timestamp); setCurrentTime(timestamp);
Object.values(previewRefs.current ?? {}).forEach((prev) =>
prev.scrubToTimestamp(Math.floor(timestamp)),
);
}); });
}} }}
/> />