Refac overwrite scrollIntoView default for consistency

This commit is contained in:
MerlinScheurer 2025-03-04 19:01:48 +01:00
parent b03b09afe8
commit d9b5576534
1 changed files with 2 additions and 2 deletions

View File

@ -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) {