complete the drag and resize
complete the drag and resize