-
Notifications
You must be signed in to change notification settings - Fork 100
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
feature: add ability to disable touch events #85
base: master
Are you sure you want to change the base?
Conversation
Hello, sorry for the late response. Could you tell me about the use-case for this? Do you think it's something that will benefit many developers? |
Hi @markusenglund, |
That's what we're trying to do right now, I think it would be helpful. The way I got around it was to use npm-patch and do what @amitmtrn did and enable clicking on the switch handle (not only background). All you have to do is pass disableTouch. react-switch+6.0.0.patch
|
I needed the ability to disable the drag events so switch would be active only on click.