Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#10687 closed bug (notabug)

Can't select max value in slider range

Reported by: i23098 Owned by:
Priority: minor Milestone: none
Component: ui.slider Version: 1.11.2
Keywords: Cc:
Blocked by: Blocking:

Description

Using the slider in range mode, if the fractional part of the max value is smaller than the one in the min value, after we reduce the max value, can't set it back to the max.

Can check a fiddle in http://jsfiddle.net/7dqLLkpb/ The max value becomes 96802.70999999999 (instead of 96803.38)

Change History (3)

comment:1 Changed 8 years ago by Scott González

Resolution: notabug
Status: newclosed

Because you have a step mismatch.

comment:2 in reply to:  1 Changed 8 years ago by i23098

Replying to scott.gonzalez:

Because you have a step mismatch.

Sorry, can you explain? I haven't specified a step... If min and max have different fractional parts, I have to calculate the best step to match?

comment:3 Changed 8 years ago by Scott González

You're using the default step of 1. See http://api.jqueryui.com/slider/#option-step

Please use the forums, Stack Overflow, or IRC for support.

Note: See TracTickets for help on using tickets.