Use true x and y coordinates of the mouse when measuring distances to vertices and connections