In all fairness, the authority of the Magisterium has had its own difficulty with those who would attempt to blend a claimed Christianity with a lust for sodomy. The fact remains that Scripture tells us that it’s an abomination in the eyes of the Lord.
We had, and still have to an extent, a severe problem with homosexual clergy, but the magisterial teaching has never changed on that. Perhaps the tolerance level was not low enough but there was no doctrinal hanky-panky here.
Also, nothing in the sex scandals was unique to Catholicism. A similar level of abuse is estimated in other religious settings, far worse in the public schools; the Catholic Church is just easier to sue.