react-component / react-component/slider

If mouse down on non-mark drag whole slider?

Open
#262 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

In the current state of rc-slider, is it possible to make a range slider so that if the user mouses down on a non-mark, and then moves the mouse, it will drag the whole slider? Like in this screencast, if I want to shift it over +1 hour, I have to move both endpoints:

I was hoping to mouse doen the slider in the middle of two labelled marks, and drag it, making the tooltips on both ends show during the drag.

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

Start by reproducing the range-slider behavior described in the issue: mousedown on the area between labelled marks, then move the mouse. Review the slider's range interaction entry points; done means both endpoints shift together and both tooltips are shown during the drag.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.