Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: clamp max canvas width #3697

Merged
merged 1 commit into from
May 11, 2024
Merged

Fix: clamp max canvas width #3697

merged 1 commit into from
May 11, 2024

Conversation

katspaugh
Copy link
Owner

@katspaugh katspaugh commented May 11, 2024

Short description

The width of individual canvases wasn't calculated correctly in some edge cases. This resulted in the rendering crashing with very long audio files.

How to test it

Can be tested by changing minPxPerSec to 70 in this example: https://wavesurfer.xyz/examples/?d5da9feca7995cd70caabe1ce6ec18d4

Before

Screenshot 2024-05-11 at 16 11 30 Screenshot 2024-05-11 at 16 10 08

After

Screenshot 2024-05-11 at 16 10 53

Copy link

cloudflare-pages bot commented May 11, 2024

Deploying wavesurfer-js with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5fd9ba8
Status: ✅  Deploy successful!
Preview URL: https://dc047906.wavesurfer-js.pages.dev
Branch Preview URL: https://clamp.wavesurfer-js.pages.dev

View logs

@katspaugh katspaugh merged commit 3ecc29b into main May 11, 2024
4 checks passed
@katspaugh katspaugh deleted the clamp branch May 11, 2024 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant