react-component / react-component/slider

Handle switches when cross in range

Open
#411 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
3.1k
Forks
768
Avg merge
11d 22h
Merged PRs (30d)
5

Description

When I drag one handle across another in a range the handle that was crossed gets selected instead, so it's not actually crossing over but rather switching handles. Are there any workarounds for this?

My use case is that I have one handle for actual value, one for target value and one for simulated value where any one of them can be the highest/lowest. So they are not actually ranges but the slider won't allow multiple handles so was hoping this might work..

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests. Start by reproducing the range-slider drag interaction with multiple handles, then trace how a crossed handle is selected and whether handle identity is preserved. Done would require an agreed behavior for handles crossing independently, with coverage for the reported actual, target, and simulated values use case.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.