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

Only allow drag input if user is holding onto the thumb #63

Open
rageshoo opened this issue Feb 28, 2024 · 2 comments
Open

Only allow drag input if user is holding onto the thumb #63

rageshoo opened this issue Feb 28, 2024 · 2 comments

Comments

@rageshoo
Copy link

Right now, I can press anywhere along the slider. The thumb will move to where I pressed and follow as I drag along the slider.

I want to only allow dragging if the user presses on the thumb first, before dragging. Is this possible to achieve?

@alantoa
Copy link
Owner

alantoa commented Feb 28, 2024

Can you please try setting disableTapEvent={false} on the slider?

@rageshoo
Copy link
Author

Can you please try setting disableTapEvent={false} on the slider?

Setting 'disableTapEvent={true}' fixes it partially. I can no longer tap to random spots along the slider.

However, if I tap on any random spot on the slider and drag, the thumb will jump and follow the drag.

I only want the thumb to move if I touch it first then drag.

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

2 participants