Search and Top Navigation
#4555 closed enhancement (wontfix)
Opened May 27, 2009 09:44AM UTC
Closed April 01, 2010 07:12PM UTC
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 (2)
Changed June 09, 2009 08:10AM UTC by comment:1
milestone: | TBD → 1.8 |
---|
Changed April 01, 2010 07:12PM UTC by comment:2
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") );
}
});
Could you provide an example where this is useful?