-
Notifications
You must be signed in to change notification settings - Fork 63
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
Incorrect value displayed. #112
Comments
Hi can you put your options and default value i check then |
Thanks for the quick reply. |
problem is due to values that are then transformed into percentage positions, and pixel is a pixel so at the end you loose precision if too much points...5000 on 200px width difficult by instance, can you increase step gap ? |
That worked in terms of displaying the correct current value in the slider label if the value is somewhere in the middle between the low and high. Thanks Now, our problem is that the slider does not display low values correctly. |
sorry I hadn't see your reply, if it is only for display purpose I can do a trick for to show correct value not rounded. |
npm version: "angular-awesome-slider": "2.4.4" I had the same issue, I had to initialize the slider to a specific value, and let the user change it which would update the model accordingly. The rounding was causing a problem as the real value was being updated incorrectly. I ended up with this "hack". This seems to fix the issue with no side-effects for our use case:
|
I have the slider set for a low of 0 and high of 5000. When I set the value to 1999 it displays 2000. Is there a way to fix this? Setting other values seems to round off as well.
We always need to display correct value regardless of low and high limits
The text was updated successfully, but these errors were encountered: