diff --git a/frontend/src/components/EmbeddableVideoPlayer.tsx b/frontend/src/components/EmbeddableVideoPlayer.tsx index 4bab055d..3795cbd5 100644 --- a/frontend/src/components/EmbeddableVideoPlayer.tsx +++ b/frontend/src/components/EmbeddableVideoPlayer.tsx @@ -66,7 +66,7 @@ const EmbeddableVideoPlayer = ({ videoId }: EmbeddableVideoPlayerProps) => { setVideoResponse(videoResponse); - inlinePlayerRef.current?.scrollIntoView(); + inlinePlayerRef.current?.scrollIntoView({ block: 'start', inline: 'start' }); setRefresh(false); } @@ -75,7 +75,7 @@ const EmbeddableVideoPlayer = ({ videoId }: EmbeddableVideoPlayerProps) => { }, [videoId, refresh]); useEffect(() => { - inlinePlayerRef.current?.scrollIntoView(); + inlinePlayerRef.current?.scrollIntoView({ block: 'start', inline: 'start' }); }, []); if (videoResponse === undefined) {