left: Math.min($(document).width(), Math.max(0, x - $draggedEl.width() / 2))