Draggable fires click event when dragging stops

Draggable fires click event when dragging stops


Hi,
At the moment when I drag an element (using the ui-draggable api), the
click event is fired when the dragging stops. At the moment I have
some code to popup a larger image when a thumbnail is clicked, but now
it always opens up whenever a user drags a thumbnail. Is there a way
to prevent this?
I've tried doing things like
$('.draggable').draggable( {
stop:function(event, ui) {
event.stopPropagation();
}
});
to no avail. I've also tried insert preventDefault(), but nothing
seems to do the trick. Any ideas?