Skip to main content

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)
  • troughclickable.patch (0.5 KB) - added by pixeldrew May 27, 2009 09:44AM UTC.

    patch to disable trough on mouse click

Change History (2)

Changed June 09, 2009 08:10AM UTC by jzaefferer comment:1

milestone: TBD1.8

Could you provide an example where this is useful?

Changed April 01, 2010 07:12PM UTC by rdworth comment:2

resolution: → wontfix
status: newclosed

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") );

}

});