Skip to main content

Search and Top Navigation

#4028 closed bug (duplicate)

Opened January 31, 2009 11:48PM UTC

Closed February 17, 2009 12:44AM UTC

Last modified January 17, 2010 06:08AM UTC

Maximum slider not dragable if set to minimum

Reported by: webdawson Owned by:
Priority: critical Milestone: 1.7
Component: ui.slider Version: 1.6rc6
Keywords: Cc:
Blocked by: Blocking:
Description

Please head over to the Range Slider Example:

http://ui.jquery.com/demos/slider/#range

and drag the right maximum slider to the left as far as you can (in this example it will stop at $75). now try to drag the maximum slider again to the right..to an higher value...its not possible, i only can drag the left slider.

Thats a big problem if i drag the left slider to 0 and also the right maximum one to 0, than i cant drag any of both sliders.

Attachments (0)
Change History (5)

Changed January 31, 2009 11:50PM UTC by webdawson comment:1

Oh! Sorry! I see if i drag both to 0 i can drag the maximum to a higher value now (you fixed that in 1.6rc6!)

Changed February 02, 2009 09:11AM UTC by tmiddel comment:2

This still does not work if the slider was configured with a minValue other than 0. Maybe it should be considered to compare to minValue instead to 0.

e.g.

if(o.range && (this.values(0) + this.values(1)) == this._valueMin()) {

closestHandle = $(this.handles[++index]);

}

Changed February 08, 2009 07:17PM UTC by zapek comment:3

The following works for me:

if(o.range && (this.values(0) == this.values(1))) {

if (this.values(0) == this._valueMin())

{

index = 1;

}

else

{

index = 0;

}

closestHandle = $(this.handles[index]);

}

The previous change suggested by 'tmiddel' didn't. I tested with a slider going from 18 to 40.

Changed February 16, 2009 05:36PM UTC by paul comment:4

priority: minorcritical

Changed February 17, 2009 12:44AM UTC by scottgonzalez comment:5

resolution: → duplicate
status: newclosed

Duplicate of #3736.