Skip to content

Commit

Permalink
remove default zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarek committed Aug 4, 2023
1 parent d41b86e commit fea3a95
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 fea3a95

Please sign in to comment.