Fixes bug when setting non-percent values

The value inputs were getting converted to a percent then back to
values. Because of rounding errors, this would cause the slider to
update to a different value than what was provided as input.