-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
How to make draggable area to be on the handle only? #16
Comments
Hi @henrikra, That's definitely a good idea. An additional prop could be added to make only the handle draggable, maybe something like |
Sounds good to me 👍 |
@henrikra This has been added in The library doesn't automatically detect touch devices but I've added docs on how to detect touch devices if you haven't already got something configured. Thanks for opening the issue, if it's not working as you expected (with the caveat above for the default handle) feel free to reopen the issue. |
@nerdyman Thx! Now I have tested the new version and it works like a charm! |
First of all this is very good library but I have one UX problem in mind.
Specially when using with mobile if you have list of different
ReactCompareSlider
s which take full width of the mobile screen it is annoying to scroll list vertically because you accidentally start sliding theReactCompareSlider
even though you wanted to scroll content of the page vertically.So would be nice to restrtict the area of
ReactCompareSlider
so that only if user drags the handle then it starts to dragReactCompareSlider
s content horizontally. What do you guys think?The text was updated successfully, but these errors were encountered: