at one instant the ships would be repelled ; immediately afterward they would be attracted again , and thus they were dragged hither and thither , but never able to break from the invisible leash which the comet had cast upon them .