Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

How to detect click on bar vs drag

Open
#1,033 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start by tracing the slider event and activeHandleRender paths, focusing on how the dragging prop is set during clicks and knob movement. Determine whether the existing callbacks expose the distinction between clicking the bar and dragging the knob; done means the issue has a documented supported behavior or a clearly scoped API change.

Written by the indexing model from the issue text.

Description

My use case is that I need to do X when user click somewhere on the bar but not by dragging the knob and Y when the user drag the knob.

I did not find any callback or state to let me do that. I also noticed that activeHandleRender has the prop dragging as true even when I don't drag it. I initially wanted to watch the props of the activeHandleRender as workaround but I cannot because of that.

Is there a feature I did not see or it's just not possible currently ?

Dominant language
TypeScript
Stars
3.1k
Forks
767
Avg merge
13d 11m
Merged PRs (30d)
3

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from react-component/slider

All issues in react-component/slider

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.