I have been dissecting the event and ui objects in firebug but it doesn’t seem to have anything I can use. Am I missing something? I suppose I can keep track of the value changes but that seems like it would be a kludge.
$(".selector").slider({
slide: function(event, ui){
// I need to tell if the slide is left-to-right or right-to-left here.
}
});
Thanks!
Jason
If you want to get the direction (value decreases or increases) just use the start and slide event. Store the inital value in a variable when the start event is fired. After that just compare this stored value against the value the sliding event creates.
Just combine different events.
Before edit:
Use the documented getter