I want cursor to be in center for ui.helper of draggable .
I am doing this like this
$(".soclass").draggable({
cursor: "move",
helper: 'clone',
revert: "invalid",
tolerance: "fit",
start: function(event, ui){
$(this).draggable("option", "cursorAt", {
left: Math.floor(ui.helper.width() / 2),
top: Math.floor(ui.helper.height() / 2)
});
}
});
Using this i get cursor in the center only after First drop. How can I center align the cursor right from first drop.
Jsfiddle