我想光标是在中心的的可拖动ui.helper.
我是这样做的
$(".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)
});
}
});
Run Code Online (Sandbox Code Playgroud)
使用这个我只在第一次掉落后才将光标放在中心. 如何将光标从第一次放下中心对齐.