-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Timeline/waveform breaks when zooming - regions #825
Comments
@jeremylach, do you know if this occurs with the regular |
Yes, it does. In fact without MultiCanvas, zooming past wavesurfer.zoom(6) clears the waveform and shows this issue. This is with a 37 minute audio. MultiCanvas definitely performs better. With MultiCanvas, and no regions, I can zoom to 100 with no issues, zooming out to "0" works too. |
@jeremylach can you verify if the problem is solved in version 1.2.6 (I've just released it on npm). |
@jeremylach thanks! I'll take a look at the timeline. |
Just a heads up: I haven't had a chance to work on this this weekend, but keeping tabs on this issue. |
@jeremylach the timeline issue should be solved in v 1.2.7 (on npm). Can you take a look? |
@katspaugh unfortunately I am seeing this issue persisting. The workaround by calling the .zoom(0) function twice does seem to work though. I can .zoom() to any number then call .zoom(0) 2 times and the timeline will reset to the original state. |
@jeremylach I've just realized I forgot to publish to npm. Were you trying v 1.2.7? Edit: just published v 1.2.7 on npm. |
Yes I downloaded the zip from the github page, 1.2.7. I'll take a look at the zoom example or create my own for you to see. |
@katspaugh I am seeing the same behavior on the wavesurfer zoom example... Drag the slider in to zoom, then drag back out. The timeline does not zoom out entirely and does not look like the way it started. |
Ah, thanks, now I see it too! |
It appears, it was a problem with that particular page, though. The left-most position of the slider didn't match the initial zoom of the waveform. Now it should be fine. Otherwise, is there any other way to reproduce your issue? |
I modified your zoom example as a codepen, to match my wavesurfer config, and at first I could not figure out why it seemed to be working on the codepen but not my site. I then realized that if I removed the regions altogether, or added them to the wavesurfer BEFORE I initialize the timeline then it works like your example. In my code, I added the regions AFTER I initialized the timeline. I am not sure if this is significant or something to note in the docs/change in the code but this seems to have fixed the problem. Here we see how my code was set up, regions added after the timeline, and the bug I've been describing is present. |
Sounds like a bug, I'll take a look. Thanks for helping to figure this out. |
Closing this one. The last comment by @jeremylach to be solved in #895. |
hi all. any chance 4ee2b29 could be merged in the |
I just posted on #895 and someone ask for clarification but the thread got locked. Not accepting my comment. Using 2.0.6. To clarify, it is the very first issue reported here that I am seeing. The waveform (and regions) disappears when zooming out. Zooming in is fine. I don't see any logs but i will work on putting some sample of on codepen or somewhere so you can see it. |
Using MultiCanvas renderer
Steps to reproduce:
2. Zoom in
3. Zoom out... the region's location within the canvas is not updated properly, causing display issues.
The text was updated successfully, but these errors were encountered: