-
Notifications
You must be signed in to change notification settings - Fork 281
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
Can't seek if insert-segment is enabled #539
Comments
Currently, to seek in the zoomview you can either click in the waveform or drag the playhead, so this should still work if scrolling is disabled. Insert segment mode does prevent seek, I think it might be confusing if seek is also allowed. |
But if I want to prevent zoomview scroll now, can't I only set Insert segment mode? |
Sorry, I think that's right, there currently isn't a way to only disable scrolling. |
I'm not sure I understand what you want to be able to do. Do you want an option to disable scrolling, but also not insert segments? |
Yes, I hope that zoomview can disable scrolling and still retain the ability to seek when clicking. |
Thanks, so we could add an option and method to enable and disable scrolling. But we'll need to think about how this would interact with the existing |
Intuitively, I feel that if scrolling is disabled, autoScroll should also be disabled. Unless you go through the settings again. Is there any conflict between these two settings so that you need to consider specifically? |
I agree, disabling scroll would also disable auto-scroll. I'm thinking about the API we might provide. The simplest is to add a new I thought about combining the auto-scroll controls into a single view.enableScroll(false); // Disables all scrolling
view.enableScroll(true); // Enables scroll and auto-scroll
view.enableScroll(true, { auto: false }); // Enables scroll but not auto-scroll
// same as existing view.enableAutoScroll(false)
view.enableScroll(true, { offset: pixels }); // Enables scroll and auto-scroll, sets auto-scroll offset |
Based on my current experience, I agree that separate settings may be more suitable for current project usage. |
Hello,
WaveformDragMode currently only has 'scroll' and 'insert-segment'. But this will make zoomview unable to seek. Is it possible for ZoomView to retain the ability to seek even when scrolling is disabled?
Such as providing "insert-point" and "seek-without-scroll" mode.
The text was updated successfully, but these errors were encountered: