Add functionality to define the animation duration of the marker if it was not dragged.