react-component / react-component/slider

Possible to have marks that behave as a sort of “snap to”?

Open
#549 0 comments 0 reactions 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

I’ve been fussing with settings for a while and haven’t been able to create quite what I’m looking for.

My slider has a min/max of -10 to 50. The default value is 0 and the step is 0.5. I’m hoping to have a mark (or something) at 0, and ideally the handle would “snap” to it when the handle is near.

The slider looks like this, if that helps at all.

image

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 reviewing the slider's existing handling of marks, min/max values, and step increments, then reproduce the -10 to 50 example with a mark at 0. Done should mean the handle snaps to the mark when moved near it, while preserving the documented slider behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.