-
-
Notifications
You must be signed in to change notification settings - Fork 171
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
add an option to prevent scrolling past the end of the audio #104
Comments
This is not intended behavior and sounds like a bug. |
I fixed it locally by:
Note: clipping.frame is not set |
Thanks for sharing. Does this work for anyone else? Also related: #96 |
I was experiencing this in a consumer app because I'm manually placing some additional controls over the waveform, and it seemed like my math was ok but the handles still would end up in the wrong place when zooming/scrolling the waveform (and otherwise ok, but that proves little since the math isn't used when at zero zoom). I tried the above fix, but it clearly is not the issue since all it does is not apply the frame changes to the clipping view, which is only for the highlighted frames functionality. You can see this by commenting the above line, building the test app, and scrubbing. You'll see that the scrub and zoom are now no longer in sync. I believe the underlying issue here is not that it is being scrolled outside of the view, but that the render cache is wrong and it's not being re-rendered often enough. In the demo app, you can see the waveform sometimes "catch up" to the current (or perhaps just a recent) render. I'll be playing with with spare time to see if I can find a reasonable fix. |
I started testing this, and it seems to be at least one very old issue - the simple repro case I'm working with is that when you are zoomed in, the waveform should not compress when panning. |
Hello, checking in to see if anybody here has solved this issue for themselves and could share back the solution as a PR? |
When zoomed in, you can swipe the view until the last part of the waveform is on the left edge of the screen. This seems a bit disorienting to me. It would be nice to have an option so that the end of the waveform stays at the right edge of the screen.
The text was updated successfully, but these errors were encountered: