Opened 14 years ago
Closed 13 years ago
#4555 closed enhancement (wontfix)
Clickable trough disable
Reported by: | pixeldrew | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.0 |
Component: | ui.slider | Version: | 1.7.1 |
Keywords: | trough clickable | Cc: | |
Blocked by: | Blocking: |
Description
This patch adds the ability to disable the trough from making the slider move.
Attachments (1)
Change History (3)
Changed 14 years ago by
Attachment: | troughclickable.patch added |
---|
comment:1 Changed 14 years ago by
Milestone: | TBD → 1.8 |
---|
Could you provide an example where this is useful?
comment:2 Changed 13 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Rather than adding an option, this should be achieved by checking the original event target in start. If not slider handle, cancel start. Depends on #5472 - slide start not cancelable
$("#slider").slider({
start: function(event, ui) {
return ( $(event.originalEvent.target).is(".ui-slider-handle") );
}
});
Note: See
TracTickets for help on using
tickets.
patch to disable trough on mouse click