I want the cursor to be in the center for the ui.helper being dragged .
I do it 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 the cursor in the center only after the first drop. How can I center the cursor to the right of the first drop.
Jsfiddle
jquery html css jquery-ui jquery-ui-draggable
Yo Yo Jan 16 '16 at 12:53 on 2016-01-16 12:53
source share