Skip to content

Commit

Permalink
fix(player): prevent focus scrolling default audio layout on play
Browse files Browse the repository at this point in the history
  • Loading branch information
mihar-22 committed Jul 24, 2024
1 parent 600a9a9 commit 0f147c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ function DefaultAudioTitle() {

React.useEffect(() => {
if (isTransitionActive && document.activeElement === document.body) {
media.player.el?.focus();
media.player.el?.focus({ preventScroll: true });
}
}, []);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function DefaultAudioTitle() {

effect(() => {
if ($isTransitionActive() && document.activeElement === document.body) {
media.player.el?.focus();
media.player.el?.focus({ preventScroll: true });
}
});

Expand Down

0 comments on commit 0f147c6

Please sign in to comment.