Skip to main content

Search and Top Navigation

#5132 closed bug (worksforme)

Opened February 04, 2010 11:27PM UTC

Closed February 06, 2010 04:02AM UTC

Last modified February 06, 2010 04:06AM UTC

Slider: Incorrect values returned

Reported by: jerep6 Owned by:
Priority: blocker Milestone: 1.8
Component: ui.slider Version: 1.7.2
Keywords: boundaries values Cc:
Blocked by: Blocking:


With Jquery 1.8rc1 the slider don't behave well.

The boundaries values aren't at the edge of the slider.

The minimal value locate one step over and the minimal value is one step before.

For example :

Step 0 = val1; Step 1 = val0

See an example of the bug :

Attachments (2)
Change History (6)

Changed February 04, 2010 11:28PM UTC by Rwhitbeck comment:1

component: ui.slider[meta] ui.demos

Changed February 04, 2010 11:31PM UTC by Rwhitbeck comment:2

component: [meta] ui.demosui.core

Changed February 05, 2010 02:27AM UTC by scottgonzalez comment:3

priority: criticalblocker
summary: Boundaries values aren't locate at the edge of the sliderSlider: Incorrect values returned

Changed February 05, 2010 02:27AM UTC by scottgonzalez comment:4

component: ui.coreui.slider

Changed February 06, 2010 04:02AM UTC by scottgonzalez comment:5

resolution: → worksforme
status: newclosed

This is working as intended. Replying on forum.

Changed February 06, 2010 04:06AM UTC by scottgonzalez comment:6

Okay, replying here since this apparently didn't start on the forums...

During a slide the values haven't been updated yet, because the slide event can be cancelled preventing the values from actually changing. If you want to know the values that will occur if the slide event is successful, you have to check the data that is passed to the event:

$( "#slider" ).slider({
    max: 10,
    values: [ 0, 10 ],
    range: true,
    slide: function( event, ui ) {
        console.log( ui.values );