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)

troughclickable.patch (504 bytes) - added by pixeldrew 14 years ago.
patch to disable trough on mouse click

Download all attachments as: .zip

Change History (3)

Changed 14 years ago by pixeldrew

Attachment: troughclickable.patch added

patch to disable trough on mouse click

comment:1 Changed 14 years ago by Jörn Zaefferer

Milestone: TBD1.8

Could you provide an example where this is useful?

comment:2 Changed 13 years ago by rdworth

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

}

});

Note: See TracTickets for help on using tickets.