record position when dragging marker