I am so tired of hearing this nonsense that homosexuality is genetic therefore the Quran is wrong in disallowing it...
The evidence is suggestive that homosexuality is partly genetic and environmental (you have identical twin studies with one twin being gay and the other completely straight).
But, this question is irrelevant. The desire to murder people also has a genetic root, yet Allah condemns it The desire to eat/drink is obviously genetic, yet Allah prohibits it in the Quran. The desire to rape is genetic and I could go on forever! Evolutionary, humans are not created to worship Allah, we are created to be selfish people who strive for survival and reproduction, yet Allah wants us to worship him and pray daily!
How is this?
How is this that Allah gives us genetic predispositions and then orders us to do the opposite?The answer, life is a test. This is stated throughout the Quran. You can control your genetic predispositions and when you withhold them for the sake of Allah that is the highest level of worship! That is showing your devotion and love to Allah!
Imagine the reward of a homosexual who actually does not commit the action of homosexual relationship or intercourse? Imagine how much devotion they would have.
People get tested in many different ways and your test would always be composed of something.
So if anyone ever tells you that homosexuality is genetic or not, you just say either way, you don't do the action. IT doesn't matter what your genetic predispositions are, humans are adaptive and Allah has created us with an intellect and free-will so that we may rise past those genetic predispositions and chose to be devout. That is the test we all undergo.
A closer look at homosexuality and the Quran on this link:
http://www.quran-islam.org/articles/part_4/quran_and_homosexuality_(P1450).html