Skip to content

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

@solace

Description

@solace

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions