Skip to content
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

Double rounding #36

Open
siideffect opened this issue Jul 3, 2017 · 0 comments
Open

Double rounding #36

siideffect opened this issue Jul 3, 2017 · 0 comments

Comments

@siideffect
Copy link

First of all, nice library!
I use it in my (production) app, and i really enjoy it.
However today i noticed a strange behavior. Lets say the step value is setted to 0.1. Lets also say the stepper goes from 3.0 to 7.5. If autorepeat enabled, and user presses on the stepper for long time, the double gets rounded to (for example) 5.1000000000001 . This happens only when the maximum velocity of long pressing is reached.
I was able to solve it using a rounding function,(to 1 decimal place in my case worked great) , inside the value property.
Hope you gonna check this error and fix it!
Happy coding

bwhtmn added a commit that referenced this issue Jul 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant