Map mouse clicks to the correct coordinate system