react-component / react-component/slider

Suggestion/Bug: Unable to drag the handle if the initial click was not on the handle itself.

Open
#943 3 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'm unsure if this is a bug or is not supported. I am unable to drag the slider handle if I don't click on the handle itself (testing here: https://slider-react-component.vercel.app/demo/slider). However, I found a sandbox online in which I am able to do it (attaching video and link below)

Link: https://codesandbox.io/s/rc-slider-forked-vrhd72?file=/src/index.js

Video:

https://github.com/react-component/slider/assets/73606371/276e6c8b-57a5-4cac-80b8-7e3fb8bda5bd

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

Reproduce the interaction in the linked slider demo, then compare it with the linked CodeSandbox fork to determine the expected behavior when clicking beside the handle before dragging. Confirm whether track clicks should initiate handle dragging and verify that the reported interaction works without regressing direct handle dragging.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.