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

Slider can only move by one step #968

Open
mgoldenbe opened this issue Jan 31, 2024 · 0 comments
Open

Slider can only move by one step #968

mgoldenbe opened this issue Jan 31, 2024 · 0 comments

Comments

@mgoldenbe
Copy link

mgoldenbe commented Jan 31, 2024

I am using Slider like this:

<Slider 
    range
    className="t-slider"
    min={0}
    max={120}
    step={15}
    marks={Object.fromEntries(range(0, 121, 15).map(t=>[t, formatTimestamp(t, 60)]))}
    value={paragraphLength}
    onChange={(v) => {setParagraphLength(v);}}/>

When dragging the slider, it gets released after a single step, so the user needs to grab it again to drag another step. A similar observation was reported in #363. However, in contrast to the code there, I do not create a Range during render (I do not create it at all).

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