Hold left-click and before you hit a block to scoop it up. Move where you want it to go, then right-click to drop it.