Skip to main content

Search and Top Navigation

#2438 closed bug (fixed)

Opened March 01, 2008 11:45AM UTC

Closed May 09, 2008 04:48PM UTC

Last modified February 26, 2009 11:58AM UTC

[slider] strange behavior for wide range

Reported by: alexo Owned by: joern
Priority: major Milestone: 1.5
Component: ui.core Version: 1.2.3
Keywords: slider multiple handle Cc:
Blocked by: Blocking:

For the following slider (with multiple handles), when handle values are changed, the console will output both handle values. The are at least two anomalies:

1) the steps value is ignored

2) the max handle value is not correct for the right edge case

<h2>3. Multiple handles, with range</h2>
<div class="playground">
	<div id='example3' class='ui-slider-2' style="margin: 40px;">
	<div class='ui-slider-handle'></div>
	<div class='ui-slider-handle' style="left: 188px;"></div>	
function onChange(e, ui) {
  var el = ui.instance.element;	
  console.log(el.slider("value",0) + " - " + el.slider("value",1));
$('#example3').slider({ minValue: 100, maxValue: 50000, steps: 1000, range: true, change: onChange });

Thank you!

Alex Objelean

Attachments (0)
Change History (9)

Changed March 03, 2008 03:47PM UTC by paul comment:1

owner: paulbraeker

Changed March 17, 2008 12:37PM UTC by joern comment:2

owner: braekerjoern

Changed March 18, 2008 10:10AM UTC by joern comment:3

Actually the steps value isn't ignored. If you output the current value on the Firebug console on slide and use the keyboard to change the value, you can see that each step is 249. The result is still rather strange, not sure yet what the issue is.

Changed March 20, 2008 06:58AM UTC by alexo comment:4

I would expect that each step would increment the current value with 1000 (the step value), at least this was the behaviour in jQueryUI-1.0.

Changed May 08, 2008 10:09PM UTC by joern comment:5

summary: jQueryUI Slider plugin - strange behavior for wide range[slider] strange behavior for wide range

Changed May 09, 2008 04:48PM UTC by paul comment:6

resolution: → fixed
status: newclosed

Fixed in r5539.

Changed May 09, 2008 06:23PM UTC by joern comment:7

Can't confirm this as fixed.

ui/tests/uiTest.slider.html, options, slider-options-range: doesn't work at all

Changed May 24, 2008 03:39AM UTC by comment:8

milestone: 1.2.4

Milestone 1.2.4 deleted

Changed February 26, 2009 11:58AM UTC by paul comment:9

milestone: → 1.5