-
Notifications
You must be signed in to change notification settings - Fork 24k
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 with minimumValue > 0 doesn't move #10253
Comments
The problem is in What happens is that before the To work around this you need to provide the
I will also add a pr to fix the issue when the step is indeed 0. |
This causes the step to be re-calculated on every update of min, max and step value, to use the most up to date values for the calculation, except if step is explicitly set to a non-zero value by the user. Fixes facebook#10253
This causes the step to be re-calculated on every update of min, max and step value, to use the most up to date values for the calculation, except if step is explicitly set to a non-zero value by the user. Fixes facebook#10253
This causes the step to be re-calculated on every update of min, max and step value, to use the most up to date values for the calculation, except if step is explicitly set to a non-zero value by the user. Fixes facebook#10253
This causes the step to be re-calculated on every update of min, max and step value, to use the most up to date values for the calculation, except if step is explicitly set to a non-zero value by the user. Fixes facebook#10253
This causes the step to be re-calculated on every update of min, max and step value, to use the most up to date values for the calculation, except if step is explicitly set to a non-zero value by the user. Fixes facebook#10253
Summary: This causes the step to be re-calculated on every update of min, max and step value, to use the most up to date values for the calculation, except if step is explicitly set to a non-zero value by the user. Fixes facebook#10253 **Test plan (required)** 1. Create example app 2. Create a view with a slider that has a `value`, `minimumValue` and `maximumValue` set, but no step value (or step value set to 0). For example: ``` <Slider maximumValue={10} minimumValue={1} value={4} /> ``` 3. See slider working as expected Closes facebook#10343 Differential Revision: D4142646 Pulled By: hramos fbshipit-source-id: a0df87bbdbbd4b2a291d89f5579f73f517a33dfc
Issue Description
Using the React Native Slider works fine with a minimum value of 0. With a minimum value above 0, the slider doesn't respect the value set and places the thumb to the beginning of the slider. This prevents the thumb from being moved.
Steps to Reproduce / Code Snippets
With a minimum value of 0, this works and allows the thumb to be moved. With a value higher than 0 the thumb will be locked to the start of the slider.
Expected Results
The thumb should be able to move with a minimum value above 0
Additional Information
The text was updated successfully, but these errors were encountered: