Ticket #4434 (closed bug: notabug)
Slider moveTo function with two handles with different ranges moves slider to wrong place
|Reported by:||kape||Owned by:|
I have a slider with two handles, say cool and heat. Cool has range min: 58, max: 92, and heat has range: min 45, max: 65. In the slider options I declare cool first then heat in the handles array. Then when I call the moveTo function on the cool handle with a value higher than 65, the handle moves to 65.
On line 260 var handle = this.options.handles[this.handleIndex()]; chooses the handle, but the function handleIndex() looks for the handle in the handle object NOT in the options.handles array, and in the case above, handle = cool but options.handles = cool.
I've changed line 260 to this.handle[this.handleIndex()]; and the moveTo is working fine, but the slide goes past the min/max now.