Opened 15 years ago
Closed 15 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 15 years ago by
Owner: | changed from paul to joern |
---|
comment:2 Changed 15 years ago by
comment:3 Changed 15 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Actually, it's related to a recent change to the distance option. If you set the option distance to 0, it will work fine.
you can add this code:
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...