Reputation: 37108
I have a jQuery UI slider that I'm using to adjust the brightness of an image. Since this involves requesting a new image from the server, things get kind of slow if, when dragged from 0 to 50, 50 new images are requested. I want to build in a delay so that it doesn't complete its action until the slider stops moving. How is this possible? I can't find any stop drag events.
Upvotes: 0
Views: 59
Reputation: 23600
There's the stop(event, ui)
event which is fired, when the sliding has stopped:
$(".selector").slider({
stop: function(event, ui) {}
});
Upvotes: 1