It must be hard to do research on this since I can imagine that prosecutions were possible even if homosexuality were not actually illegal (one can find other crimes to prosecute such as 'corrupting the youth') and the conflation between various sexual acts in law (e.g. consentual versus non-consentual sexual activity).
I do appreciate the idea that it may have been prompted by anti-homosexual moral panics though. That resonates.