Opened 13 months ago

Last modified 3 months ago

#15262 new bug

Slider max rounded down

Reported by: Jason Grout Owned by:
Priority: minor Milestone: none
Component: ui.slider Version: 1.12.1
Keywords: Cc:
Blocked by: Blocking:

Description

In #12852, an issue with floating point roundoff in the slider was fixed.

This new logic still has a problem with the range (0.0, 0.6) and step 0.1: http://jsfiddle.net/f551752v/1/. 0.6 is not reachable in this case - the slider only goes up to 0.5.

Perhaps instead of subtracting a step from max, we could build in the knowledge that the last step may not be a full step and keep the user-set maximum (since that's what the user intended, since it was explicitly set).

Change History (1)

comment:1 Changed 3 months ago by Scott González

Component: ui.coreui.slider
Note: See TracTickets for help on using tickets.