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

Query: No overlap but allow neighbouring handles to be pushed around #191

Open
solace opened this issue Feb 2, 2024 · 0 comments
Open

Comments

@solace
Copy link

solace commented Feb 2, 2024

Hi,

I'm using react-range for an audio range with one handle for the start, one for the end, and one for the playhead. Start and end cannot overlap, and playhead must be between start and end. But I would like start and end to be able to push the playhead around. eg. If start is dragged past where playhead is, playhead moves with it so it also increases, but never falls behind start and neither can go past end.

Is this something I could achieve with the current functionality?

The other options I have considered are:

  1. Allow overlap and manually check for collisions and repositioning of playhead on change.
  2. Separate playhead from the start and end range and have playhead listen for changes to start and end to change its position if needed.

Thanks

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

No branches or pull requests

1 participant