Ticket #5132 (closed bug: worksforme)
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: | |
| Blocking: | Blocked by: |
Description
Hello, 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 : http://jerep6.free.fr/bugJquery/bug.html
Attachments
Change History
comment:3 Changed 3 years ago by scott.gonzalez
- Priority changed from critical to blocker
- Summary changed from Boundaries values aren't locate at the edge of the slider to Slider: Incorrect values returned
comment:5 Changed 3 years ago by scott.gonzalez
- Status changed from new to closed
- Resolution set to worksforme
This is working as intended. Replying on forum.
comment:6 Changed 3 years ago by scott.gonzalez
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 );
}
});


