ui drag with autoalign fix