-
Notifications
You must be signed in to change notification settings - Fork 68
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
Slider touch stops scrolling in scrollview #412
Comments
I just had the same problem. My solution is to handle "clicks" with a little delay of 100ms. If a movement is in between I ignore the click. `import React, { PureComponent } from 'react';
} |
@rt012 thank you for your suggestion. Do you know if the Slider has such a prop for click delay? I can't see the import of it in your comment. |
Not for now.. you can add if you want.. at the moment the delay is fixed to 100ms , see the code block here:
|
Hello @miblanchard , can you consider adding such a behavior for the next verson/subversion with a click delay prop? |
@angelzbg Hi, I got the same problem, did u find the solution? |
@lucyanddarlin Hi, I haven't found a solution to this problem still. |
In my app I have the Slider component implemented in a ScrollView. When I try to scroll up or down my finger accidentally falls into the slider and instead of scrolling it starts sliding while my fingers moves up/down. It's a very unpleasant user experience. Can someone suggest a way to fix that behavior?
Used props:
value={value}
animateTransitions
minimumValue={0}
maximumValue={sliderMarks.length - 1}
step={1}
trackClickable={true}
onValueChange={(value) => setValue(value[0])}
The text was updated successfully, but these errors were encountered: