Bug Tracker

Opened 12 years ago

Closed 12 years ago

#2696 closed bug (wontfix)

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?

Change History (3)

comment:1 Changed 12 years ago by paul

Owner: changed from paul to joern

comment:2 Changed 12 years ago by hex0id

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...

comment:3 Changed 12 years ago by paul

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.

Note: See TracTickets for help on using tickets.