Search and Top Navigation
#2366 closed bug (fixed)
Opened February 19, 2008 07:16PM UTC
Closed March 15, 2008 01:40PM UTC
Last modified February 26, 2009 11:30AM UTC
slider with two handles: When stepping < 1/4 of realMaxValue ->wrong steps created
Reported by: | nettoyeur | Owned by: | eduardo |
---|---|---|---|
Priority: | major | Milestone: | 1.5 |
Component: | ui.core | Version: | 1.2.3 |
Keywords: | slider, stepping, jqueryui | Cc: | |
Blocked by: | Blocking: |
Description
ui.slider.js, r4730
When minValue=0 and stepping is smaller then 1/4 of maxvalue, it fails to create the proper steps (rounding error?)
how to reproduce:
Create slider with two handles.
minvalue:0 maxvalue:1000 stepping:250
->everything ok, steps of 250 are taken
Now try smaller stepping:
minvalue:0 maxvalue:1000 stepping:200
->first step with left slider is 196.8085106382979, second step is 398.93617021276594, third step is 595.7446808510638, fourth step is 797.8723404255319, fifth step is 1000.
(expected: 200,400,600,800,1000)
Attachments (0)
Change History (8)
Changed February 21, 2008 02:23PM UTC by comment:1
owner: | paul → braeker |
---|
Changed February 25, 2008 08:03AM UTC by comment:2
This also occurs in single-handle sliders.
Changed February 25, 2008 08:18AM UTC by comment:3
Also, I could really use a fix for this issue ASAP. I need to use 1.5b to be able to use a slider with multiple handles, but using 1.5b also breaks my sliders with this bug.
Changed March 14, 2008 11:13PM UTC by comment:4
This is because .value() calculates itself from the position of the element instead of the current position on the stepping
Changed March 14, 2008 11:22PM UTC by comment:5
Please apply the patch. tests are passing
Changed March 15, 2008 01:40PM UTC by comment:6
resolution: | → fixed |
---|---|
status: | new → closed |
Fixed in [4963].
Changed May 24, 2008 03:39AM UTC by comment:7
milestone: | 1.2.4 |
---|
Milestone 1.2.4 deleted
Changed February 26, 2009 11:30AM UTC by comment:8
milestone: | → 1.5 |
---|