Skip to main content

Bug Tracker

Side navigation

#2696 closed bug (wontfix)

Opened April 16, 2008 02:43PM UTC

Closed May 04, 2008 11:42AM UTC

Slider - possible bug with slider bar

Reported by: dgarlitt Owned by: joern
Priority: major Milestone: 1.2.4
Component: ui Version: 1.2.3
Keywords: slider Cc:
Blocked by: Blocking:
Description

I posted this on the discussion and was told that it sounds like a bug. Here is my code:

$('#bgSlider').slider( {

minValue: 0,

maxValue: 100,

startValue: 100,

stepping: 10,

stop: function (event, ui) {

changeOpacity(ui.value);

},

slide: function (event, ui) {

changeOpacity(ui.value);

},

change: function (event, ui) {

changeOpacity(ui.value);

}

} );

I am using stop, slide and change to call a function when the slider is moved. This works great when the slider handle is moved by dragging the slider handle, however when the slider handle is moved by clicking somewhere in the slider bar my changeOpacity() function is not called. Is there something I am missing or is this a bug?

Attachments (0)
Change History (3)

Changed April 17, 2008 12:15PM UTC by paul comment:1

owner: pauljoern

Changed April 30, 2008 10:25AM UTC by hex0id comment:2

you can add this code:

  this.propagate('slide', e);
  return false;

after line 234 in ui.slider.js (thats end of click method in ui.slider function). btw I can't understand why developers didn't done this already...

Changed May 04, 2008 11:42AM UTC by paul comment:3

resolution: → wontfix
status: newclosed

Actually, it's related to a recent change to the distance option. If you set the option distance to 0, it will work fine.