finish drag and resize block
fix drag and resize