Marcin Bobowski
Marcin Bobowski

Reputation: 1775

jQuery range slider - strange behavior (wrong values)

Im trying to use uiSlider to define hourrange. http://marcneuwirth.com/wp-content/uploads/2010/06/timeslider3.html

Slider handles behave strangely - when moving right slider, it changes value correctly (or not quite), but when leaved, and moved left handle - value of right handle changes. Same thing happends in other direction. Also moving one handle left and right shows strange changes in values.

Thanks for any advices.

Upvotes: 0

Views: 436

Answers (1)

Ihor Deyneka
Ihor Deyneka

Reputation: 1409

I have played a bit with your jsfiddle and modified a bit your slideTime function

http://jsfiddle.net/a5hRe/6/

val0 = ui != undefined ? ui.values[0] : 480,
val1 = ui != undefined ? ui.values[1] : 1080

You may want to refactor this code, but it looks like now it is working fine.

Upvotes: 2

Related Questions