The point at index in pendingVertices is being repositioned (it follows the drag live). origin is where it was when the drag began: the "before" of the one undo step recorded when the drag ends.
pendingVertices