Skip to content

Commit

Permalink
Merge pull request #187 from Renumics/feature/33-audio-player-zoom-ou…
Browse files Browse the repository at this point in the history
…t-per-default

remove default zoom
  • Loading branch information
neindochoh authored Aug 7, 2023
2 parents 79f5821 + fea3a95 commit 0a2132b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/components/shared/AudioViewer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -341,14 +341,6 @@ const AudioViewer = ({
}
}, [isReady, windows, editable]);

useEffect(() => {
if (isReady) {
zoomToWindow();
}
// Only zoom when isReady changes, not when window changes
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [isReady]);

useEffect(() => {
if (!audioRef.current) return;
if (url && peaks) {
Expand Down

0 comments on commit 0a2132b

Please sign in to comment.