Question about moving objects based on mouse position

There's an answer that takes the mouse position and converts it to a position on a timeline:

A more sophisticated solution would use two timelines: one for the X movement and one for the Y movement.