-
Notifications
You must be signed in to change notification settings - Fork 58
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 component only allows adjusting in increments of 10 via drag gesture #2117
Slider component only allows adjusting in increments of 10 via drag gesture #2117
Comments
@lukewalczak Could you check what’s going on here? Let’s try to fix this one as soon as possible. |
It looks like it's the effect/result of PR related to sharing
|
Ah, okay, thanks for investigating @lukewalczak! Maybe I'm missing some rationale that the web folks have for single increments to be 10px vs. 1px, but it feels really odd to me (even on the web, but esp in the context of a slider on mobile). Are we able to override that to apply increments of |
I didn't take part in refactoring
Sure, my suggestion above is fixing that in this way (mobile: step = 1, web: step = 10),however let's wait for @pinarol opinion on that ✌️ |
Sounds good! To be fair, it is a nice thing to have the ability to set step values (particularly something that has a smaller range but a Stepper isn't desirable — like image sizes or something along those lines), but the default unit, imo, should be 1. FYI @SergioEstevao (who worked on the Spacer refactoring recently, although I don't think he changed anything w/ this step value 😄) |
Agree on that! |
Sounds good to me considering that @iamthomasbishop is giving the 👍 |
I defer to you @iamthomasbishop but I don't think it makes sense increments of 1, do you think our users will increment/want spacers with 1px difference? Can we check with the web folks what is the rationale there? Or you already checked with them? |
I talked a bit with @pinarol and @lukewalczak and I changed my mind because of two things:
So I agree that we should have steps of 1 on mobile. |
👍 Sounds good. It'd still make sense to touch base w/ the web folks to see what their rationale may have been. |
Describe the bug
Slider component only allows adjusting in increments of 10 via drag gesture.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect to adjust by increments of 1.
Screenshots
![RPReplay_Final1586206890-min 2020-04-06 16_03_41](https://user-images.githubusercontent.com/1200432/78604932-40393900-7820-11ea-9eb9-9e0444ace083.gif)
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: